diff --git a/VeterinaryView/VeterinaryDatabaseImplement/Implements/PurchaseStorage.cs b/VeterinaryView/VeterinaryDatabaseImplement/Implements/PurchaseStorage.cs index 3f3eb5b..4d254b6 100644 --- a/VeterinaryView/VeterinaryDatabaseImplement/Implements/PurchaseStorage.cs +++ b/VeterinaryView/VeterinaryDatabaseImplement/Implements/PurchaseStorage.cs @@ -22,6 +22,7 @@ namespace VeterinaryDatabaseImplement.Implements return context.Purchases.Include(x => x.Owner).Include(x => x.Pets).ThenInclude(x => x.Pet).Include(x => x.Drug) .Where(x => ((!model.Id.HasValue || x.Id == model.Id) && (!model.DateCreate.HasValue || x.DateCreate >= model.DateCreate) && + (!model.DateImplement.HasValue || x.DateImplement >= model.DateImplement) && (!model.OwnerId.HasValue || x.OwnerId <= model.OwnerId) && (!model.DrugId.HasValue || x.DrugId == model.DrugId))) .Select(x => x.GetViewModel)