Merge branch 'LabWork06_Hard' into LabWork07_Hard

This commit is contained in:
Данила Мочалов 2023-04-22 10:33:03 +04:00
commit ecfa871e1a

View File

@ -18,16 +18,6 @@ namespace LawFirmDatabaseImplement.Implements
{
using var context = new LawFirmDatabase();
if (model.ImplementerId != null && model.Status != null)
{
return context.Orders
.Include(x => x.Document)
.Include(x => x.Client)
.Include(x => x.Implementer)
.FirstOrDefault(x => x.Status.Equals(model.Status) && x.ImplementerId.Equals(model.ImplementerId))?.GetViewModel;
}
return context.Orders
.Include(x => x.Document)
.Include(x => x.Client)