This commit is contained in:
Вячеслав Иванов 2024-03-31 17:32:36 +04:00
parent 484899e39d
commit a4f7c6e779
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ namespace PizzeriaFileImplement.Implements
public List<OrderViewModel> GetFilteredList(OrderSearchModel model)
{
if (!model.DateFrom.HasValue || !model.DateTo.HasValue)
if (!model.Id.HasValue || !model.DateFrom.HasValue || !model.DateTo.HasValue)
{
return new();
}

View File

@ -33,7 +33,7 @@ namespace PizzeriaListImplement.Implements
public List<OrderViewModel> GetFilteredList(OrderSearchModel model)
{
var result = new List<OrderViewModel>();
if (model == null || !model.DateFrom.HasValue || !model.DateFrom.HasValue)
if (model == null || !model.Id.HasValue || !model.DateFrom.HasValue || !model.DateFrom.HasValue)
{
return result;
}