This commit is contained in:
revengel66 2024-03-12 19:51:37 +04:00
parent 693f0ab646
commit be33d7b34b

View File

@ -20,8 +20,7 @@ namespace PizzeriaBusinessLogic.BusinessLogic
public List<PizzaViewModel>? ReadList(PizzaSearchModel? model)
{
_logger.LogInformation("ReadList. PizzaName:{PizzaName}.Id:{ Id}", model?.PizzaName, model?.Id);
var list = model == null ? _PizzaStorage.GetFullList() :
_PizzaStorage.GetFilteredList(model);
var list = model == null ? _PizzaStorage.GetFullList() : _PizzaStorage.GetFilteredList(model);
if (list == null)
{
_logger.LogWarning("ReadList return null list");