логикa получения списка фильтрованных заказов
This commit is contained in:
parent
3f0071aa7b
commit
c630a3740d
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user