lab5 alpha3
This commit is contained in:
parent
94d670186c
commit
cbdc5e691b
@ -23,11 +23,8 @@ namespace ConfectioneryFileImplement.Implements
|
|||||||
return source.Orders
|
return source.Orders
|
||||||
.Where(x => (
|
.Where(x => (
|
||||||
(!model.Id.HasValue || x.Id == model.Id) &&
|
(!model.Id.HasValue || x.Id == model.Id) &&
|
||||||
(!model.DateFrom.HasValue || x.DateCreate >=
|
(!model.DateFrom.HasValue || x.DateCreate >= model.DateFrom) &&
|
||||||
model.DateFrom) && (!model.DateTo.HasValue ||
|
(!model.DateTo.HasValue || x.DateCreate <= model.DateTo)
|
||||||
x.DateCreate <= model.DateTo) &&
|
|
||||||
(!model.ClientId.HasValue ||
|
|
||||||
x.ClientId == model.ClientId)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.Select(x => AccessPastryStorage(x.GetViewModel))
|
.Select(x => AccessPastryStorage(x.GetViewModel))
|
||||||
|
@ -27,11 +27,8 @@ namespace ConfectioneryListImplement.Implements
|
|||||||
foreach (var order in _source.Orders)
|
foreach (var order in _source.Orders)
|
||||||
{
|
{
|
||||||
if ((!model.Id.HasValue || order.Id == model.Id) &&
|
if ((!model.Id.HasValue || order.Id == model.Id) &&
|
||||||
(!model.DateFrom.HasValue || order.DateCreate >=
|
(!model.DateFrom.HasValue || order.DateCreate >= model.DateFrom) &&
|
||||||
model.DateFrom) && (!model.DateTo.HasValue ||
|
(!model.DateTo.HasValue || order.DateCreate <= model.DateTo))
|
||||||
order.DateCreate <= model.DateTo) &&
|
|
||||||
(!model.ClientId.HasValue ||
|
|
||||||
order.ClientId == model.ClientId))
|
|
||||||
{
|
{
|
||||||
result.Add(AccessPastryStorage(order.GetViewModel));
|
result.Add(AccessPastryStorage(order.GetViewModel));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user