Storages updated

This commit is contained in:
the 2023-04-04 14:55:34 +04:00
parent d89c3851ac
commit e40092f78b
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ namespace ComputerShopFileImplement.Implements
return new();
}
return source.Orders
.Where(x => x.Id == model.Id)
.Where(x => x.Id == model.Id || model.DateFrom <= x.DateCreate && x.DateCreate <= model.DateTo)
.Select(x => x.GetViewModel)
.ToList();
}

View File

@ -45,7 +45,7 @@ namespace ComputerShopListImplement.Implements
}
foreach (var order in _source.Orders)
{
if (order.Id == model.Id)
if (order.Id == model.Id || model.DateFrom <= order.DateCreate && order.DateCreate <= model.DateTo)
{
result.Add(order.GetViewModel);
}