From 8a869e73fb1873b1f85203b7a4a18dc8a2325a11 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Wed, 8 Dec 2021 14:38:23 +0300 Subject: Rename dir ExcelDNA -> AddIn --- Source/AddIn/Functions.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Source/AddIn/Functions.cs (limited to 'Source/AddIn/Functions.cs') diff --git a/Source/AddIn/Functions.cs b/Source/AddIn/Functions.cs new file mode 100644 index 0000000..6d94e24 --- /dev/null +++ b/Source/AddIn/Functions.cs @@ -0,0 +1,19 @@ +using ExcelDna.Integration; + +namespace RehauSku.Assist +{ + public class Functions + { + [ExcelFunction] + public static object RAUNAME(string request) + => SkuAssist.GetProduct(request, ProductField.Name); + + [ExcelFunction] + public static object RAUSKU(string request) + => SkuAssist.GetProduct(request, ProductField.Id); + + [ExcelFunction] + public static object RAUPRICE(string request) + => SkuAssist.GetProduct(request, ProductField.Price); + } +} \ No newline at end of file -- cgit v1.2.3