PIbd-21 Lab7 base Barsukov ComputersShop #20

Closed
frog24 wants to merge 8 commits from Lab7 into Lab6
Showing only changes of commit 66c79261b5 - Show all commits

View File

@ -25,7 +25,7 @@ namespace ComputersShopDatabaseImplements.Implements
.Include(x => x.Computer)
.Include(x => x.Client)
.Include(x => x.Implementer)
.FirstOrDefault(x =>
.FirstOrDefault(x =>
(model.Status == null || model.Status != null && model.Status.Equals(x.Status)) &&
(model.ImplementerId.HasValue && x.ImplementerId == model.ImplementerId) ||
(model.Id.HasValue && x.Id == model.Id))?