RhSolutions-AddIn/Source/Assistant/SkuAssist.cs
Sergey Chebotar e175a634ce Refactoring. ExcelDNA.IntelliSense library add.
Add description to Excel functions.
2021-12-13 20:39:41 +03:00

22 lines
482 B
C#

using System.Threading.Tasks;
namespace RehauSku.Assistant
{
public enum ProductField
{
Name,
Id,
Price
}
static class SkuAssist
{
public static async Task<IProduct> GetProductAsync(string request)
{
var content = await HttpClientUtil.GetContentByRequest(request);
var document = await ParseUtil.ContentToDocAsync(content);
return ParseUtil.GetProduct(document);
}
}
}