PIbd-24 Antonova A.A. LabWork_2 #2

Closed
Anitonchik wants to merge 12 commits from LabWork_2 into LabWork_1
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 50c8f3070e - Show all commits

View File

@ -9,7 +9,7 @@ namespace ProjectCompanyFurniture.Repositories;
public interface IInvoiceRepository
{
IEnumerable<Invoice> ReadInvoices (DateTime? dateForm = null, DateTime? dateTo = null, int? clientId = null);
IEnumerable<Invoice> ReadInvoices (DateTime? dateForm = null, DateTime? dateTo = null, int? productId = null);
void CreateInvoice(Invoice invoice);
void DeleteInvoice(int id);

View File

@ -76,7 +76,7 @@ public class InvoiceRepository : IInvoiceRepository
}
}
public IEnumerable<Invoice> ReadInvoices(DateTime? dateForm = null, DateTime? dateTo = null, int? clientId = null)
public IEnumerable<Invoice> ReadInvoices(DateTime? dateForm = null, DateTime? dateTo = null, int? productId = null)
{
_logger.LogInformation("Получение всех объектов");
try