Fix null return

This commit is contained in:
Sergey Chebotar 2021-12-03 13:24:31 +03:00
parent b5c7135070
commit 2f7c5688dd

View File

@ -25,10 +25,16 @@ namespace Rehau.Sku.Assist
{
return "Загрузка...";
}
else if (result == null)
{
return "Не найдено";
}
else
{
MemoryCache.Default.Add(request, result, System.DateTime.Now.AddMinutes(10));
return result == null ? "Не найдено" : result.ToString();
return result.ToString();
}
}
}