narsil/Tanshu.Accounts.Repository/SettingBI.cs
2018-08-24 16:11:33 +05:30

19 lines
472 B
C#

using RestSharp;
using Tanshu.Accounts.Entities;
namespace Tanshu.Accounts.Repository
{
public static class SettingBI
{
public static Setting Get(string name)
{
var request = new RestRequest();
request.Resource = "Setting/{name}.json";
request.AddParameter("name", name, ParameterType.UrlSegment);
var setting = JsonStore.Execute<Setting>(request);
return setting;
}
}
}