diff --git a/JewelryStoreFileImplement/Implements/OrderStorage.cs b/JewelryStoreFileImplement/Implements/OrderStorage.cs index 40ac71d..c842781 100644 --- a/JewelryStoreFileImplement/Implements/OrderStorage.cs +++ b/JewelryStoreFileImplement/Implements/OrderStorage.cs @@ -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 GetFullList()