Merge branch 'LabWork06_Hard' into LabWork07_Hard
This commit is contained in:
commit
ecfa871e1a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user