6 лаба беда бедовая не работает
This commit is contained in:
parent
2878ea7bbb
commit
d1973efdce
@ -78,7 +78,7 @@ namespace ConfectioneryDatabaseImplement.Implements
|
||||
|
||||
public OrderViewModel? GetElement(OrderSearchModel model)
|
||||
{
|
||||
if (!model.Id.HasValue)
|
||||
if (!model.Id.HasValue && !model.ImplementerId.HasValue)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
@ -37,6 +37,7 @@ namespace ConfectioneryDatabaseImplement.Models
|
||||
Id = model.Id,
|
||||
PastryId = model.PastryId,
|
||||
ClientId = model.ClientId,
|
||||
ImplementerId = model.ImplementerId,
|
||||
Count = model.Count,
|
||||
Sum = model.Sum,
|
||||
Status = model.Status,
|
||||
@ -53,6 +54,7 @@ namespace ConfectioneryDatabaseImplement.Models
|
||||
}
|
||||
Status = model.Status;
|
||||
DateImplement = model.DateImplement;
|
||||
ImplementerId = model.ImplementerId;
|
||||
}
|
||||
|
||||
public OrderViewModel GetViewModel => new()
|
||||
@ -60,13 +62,15 @@ namespace ConfectioneryDatabaseImplement.Models
|
||||
Id = Id,
|
||||
PastryId = PastryId,
|
||||
ClientId = ClientId,
|
||||
ImplementerId = ImplementerId,
|
||||
Count = Count,
|
||||
Sum = Sum,
|
||||
Status = Status,
|
||||
DateCreate = DateCreate,
|
||||
DateImplement = DateImplement,
|
||||
PastryName = Pastry.PastryName,
|
||||
ClientFIO = Client.ClientFIO
|
||||
ClientFIO = Client.ClientFIO,
|
||||
ImplementerFIO = Implementer?.ImplementerFIO ?? string.Empty
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user