IProductService.cs 457 B

1234567891011121314
  1. using Microsoft.AspNetCore.JsonPatch;
  2. using Products.Common.Dtos;
  3. namespace Products.Business.Service;
  4. public interface IProductService
  5. {
  6. IEnumerable<ProductDto> GetProducts();
  7. ProductDto GetProduct(int id);
  8. ProductDto AddProduct(CreateProductDto product);
  9. ProductDto PatchProduct(int id, JsonPatchDocument<UpdateProductDto> productDto);
  10. ProductDto UpdateProduct(int id, UpdateProductDto productDto);
  11. void DeleteProduct(int id);
  12. }