Spaces:
Sleeping
Sleeping
File size: 440 Bytes
c2908d2 a19fd25 c2908d2 8ded86b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | using OilShopManagement.Models;
namespace OilShopManagement.Repositories;
public interface IProductRepository : IRepository<Product>
{
Task<IEnumerable<Product>> GetAllWithCategoryAsync();
Task<Product?> GetWithCategoryAsync(int id);
Task<IEnumerable<Product>> GetLowStockProductsAsync();
Task<IEnumerable<Product>> SearchAsync(string searchTerm);
Task<IEnumerable<Product>> GetByCategoryAsync(int categoryId);
}
|