using System; using System.Collections.Generic; using System.Threading.Tasks; using Webshop.Domain.Entities; namespace Webshop.Domain.Interfaces { public interface IProductRepository { Task> GetAllProductsAsync(); Task GetProductByIdAsync(Guid id); Task GetBySlugAsync(string slug); Task AddProductAsync(Product product); Task UpdateProductAsync(Product product); Task SaveChangesAsync(); Task DeleteProductAsync(Guid id); } }