PIbd-23. Ivanov V.N. Lab Work 05 hard #10

Closed
Vyacheslav wants to merge 9 commits from LabWork5_Hard into LabWork5
3 changed files with 3 additions and 3 deletions
Showing only changes of commit e92c577045 - Show all commits

View File

@ -17,7 +17,7 @@ namespace PizzeriaDatabaseImplement.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

@ -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;
}