aboutsummaryrefslogtreecommitdiff
path: root/src/Services/Functions.cs
diff options
context:
space:
mode:
authorSergey Chebotar <s.chebotar@gmail.com>2022-12-20 12:41:46 +0300
committerSergey Chebotar <s.chebotar@gmail.com>2022-12-20 12:41:46 +0300
commit6137433aefde1257fa42e0823242e66f5bd57e22 (patch)
treeb2f3e99c9144b8568894547f9546c323cee4b3a9 /src/Services/Functions.cs
parent73569a43644309d0342817580bcfd86c1face5b8 (diff)
Refactoring
Diffstat (limited to 'src/Services/Functions.cs')
-rw-r--r--src/Services/Functions.cs31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/Services/Functions.cs b/src/Services/Functions.cs
deleted file mode 100644
index 22b67e0..0000000
--- a/src/Services/Functions.cs
+++ /dev/null
@@ -1,31 +0,0 @@
-using ExcelDna.Integration;
-using System;
-
-namespace RhSolutions.Services
-{
- public class Functions
- {
- [ExcelFunction(Description = "Запрос в удаленную базу данных")]
- public static object RHSOLUTIONS([ExcelArgument(Name = "Запрос")] string line)
- {
- object result;
-
- result = ExcelAsyncUtil.Run("Database request", line, delegate
- {
- return RhDatabaseClient.GetProduct(line).GetAwaiter().GetResult();
- });
-
- if (result == null)
- {
- return ExcelError.ExcelErrorNA;
- }
-
- if (result.Equals(ExcelError.ExcelErrorNA))
- {
- return "Загрузка...";
- }
-
- return result;
- }
- }
-} \ No newline at end of file