логикa получения списка фильтрованных заказов

This commit is contained in:
VictoriaPresnyakova 2023-03-20 21:10:32 +04:00
parent 3f0071aa7b
commit c630a3740d

View File

@ -52,7 +52,7 @@ namespace JewelryStoreFileImplement.Implements
return new();
}
return source.Orders.Where(x => x.Id == model.Id).Select(x => x.GetViewModel).ToList();
return source.Orders.Where(x => x.DateCreate >= model.DateFrom && x.DateCreate <= model.DateTo).Select(x => Jewel(x.GetViewModel)).ToList();
}
public List<OrderViewModel> GetFullList()