14 lines
431 B
C#
14 lines
431 B
C#
// src/Webshop.Domain/Interfaces/IProductRepository.cs
|
|
using Webshop.Domain.Entities;
|
|
|
|
namespace Webshop.Domain.Interfaces
|
|
{
|
|
public interface IProductRepository
|
|
{
|
|
Task<Product?> GetProductByIdAsync(Guid id);
|
|
Task<IEnumerable<Product>> GetAllProductsAsync();
|
|
Task AddProductAsync(Product product);
|
|
Task UpdateProductAsync(Product product);
|
|
Task DeleteProductAsync(Guid id);
|
|
}
|
|
} |