IProductRepository.cs 333 B

12345678910111213
  1. using Products.Business.Domain;
  2. namespace Products.Business.Repository;
  3. public interface IProductRepository
  4. {
  5. IEnumerable<Product?> GetProducts();
  6. Product? GetProduct(int id);
  7. Product AddProduct(Product product);
  8. void UpdateProduct(Product product);
  9. void DeleteProduct(int id);
  10. bool ProductExists(int id);
  11. }