Spaces:
Sleeping
Sleeping
Download Repositories/IProductRepository.cs from azizproject/Oilshop: direct link, hf CLI and curl.
- Browser
- Download file 440 Bytes
-
https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Repositories/IProductRepository.cs
- Command line
-
hf download hf://spaces/azizproject/Oilshop/Repositories/IProductRepository.cs
-
curl -L -o IProductRepository.cs https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Repositories/IProductRepository.cs
440 Bytes
| 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); | |
| } | |