Oilshop / Repositories /IProductRepository.cs
almakhmri253-stack
Fix: replace DateTime.Today with DateTime.UtcNow.Date for PostgreSQL
8ded86b
Raw History Blame Contribute Delete
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);
}