diff --git a/Source/ExcelDNA/Functions.cs b/Source/ExcelDNA/Functions.cs index db882c5..b348fc9 100644 --- a/Source/ExcelDNA/Functions.cs +++ b/Source/ExcelDNA/Functions.cs @@ -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(); } } }