Fix null return
This commit is contained in:
parent
b5c7135070
commit
2f7c5688dd
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user