This commit is contained in:
Tizian.Breuch
2025-07-23 21:08:30 +02:00
parent d20a6d6ae6
commit ce69373adb
85 changed files with 2311 additions and 332 deletions

View File

@@ -1,15 +1,16 @@
// src/Webshop.Domain/Interfaces/IProductRepository.cs
using Webshop.Domain.Entities;
// src/Webshop.Domain/Interfaces/IProductRepository.cs
using System.Collections.Generic;
using System.Threading.Tasks;
using Webshop.Domain.Entities; // Product Entity
namespace Webshop.Domain.Interfaces
{
public interface IProductRepository
{
Task<Product?> GetProductByIdAsync(Guid id);
Task<IEnumerable<Product>> GetAllProductsAsync();
Task<Product?> GetProductByIdAsync(Guid id);
Task AddProductAsync(Product product);
Task UpdateProductAsync(Product product);
Task DeleteProductAsync(Guid id);
Task<bool> ProductExistsBySlugAsync(string slug);
}
}