fix2
This commit is contained in:
parent
484899e39d
commit
a4f7c6e779
@ -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();
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user