Spaces:
Sleeping
Sleeping
Download Repositories/IInvoiceRepository.cs from azizproject/Oilshop: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Repositories/IInvoiceRepository.cs
- Command line
-
hf download hf://spaces/azizproject/Oilshop/Repositories/IInvoiceRepository.cs
-
curl -L -o IInvoiceRepository.cs https://huggingface.co/spaces/azizproject/Oilshop/resolve/main/Repositories/IInvoiceRepository.cs
576 Bytes
| using OilShopManagement.Models; | |
| namespace OilShopManagement.Repositories; | |
| public interface IInvoiceRepository : IRepository<Invoice> | |
| { | |
| Task<IEnumerable<Invoice>> GetAllWithDetailsAsync(); | |
| Task<Invoice?> GetWithDetailsAsync(int id); | |
| Task<IEnumerable<Invoice>> GetByDateRangeAsync(DateTime from, DateTime to); | |
| Task<IEnumerable<Invoice>> GetByCustomerAsync(int customerId); | |
| Task<string> GenerateInvoiceNumberAsync(); | |
| Task<decimal> GetTotalSalesAsync(DateTime from, DateTime to); | |
| Task<decimal> GetTotalProfitAsync(DateTime from, DateTime to); | |
| } | |