Исполнитель: фикс
This commit is contained in:
parent
8a9302f04e
commit
18db845755
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user