fix
This commit is contained in:
parent
a52922a883
commit
1b57449e73
@ -18,16 +18,6 @@ namespace LawFirmDatabaseImplement.Implements
|
|||||||
{
|
{
|
||||||
using var context = new LawFirmDatabase();
|
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
|
return context.Orders
|
||||||
.Include(x => x.Document)
|
.Include(x => x.Document)
|
||||||
.Include(x => x.Client)
|
.Include(x => x.Client)
|
||||||
|
Loading…
Reference in New Issue
Block a user