try
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user