public AccountsController() { Model1 = new ClientsAccount().GetType().Name; Model1FileName = AppDataFolder + "InnerAPI\\" + Model1 + ".json"; Model2 = new ClientsRole().GetType().Name; Model2FileName = AppDataFolder + "InnerAPI\\" + Model2 + ".json"; FileChecker <ClientsRole> .AutoCreateIfNotExists(Model2FileName); FileChecker <ClientsAccount> .AutoCreateIfNotExists(Model1FileName); }
public ClientsBusinessInformationController() { Model1 = new ClientsBusinessInformation().GetType().Name; Model1FileName = AppDataFolder + "InnerAPI\\" + Model1 + ".json"; Model2 = new MDRRate().GetType().Name; Model2FileName = AppDataFolder + "InnerAPI\\" + Model2 + ".json"; FileChecker <MDRRate> .AutoCreateIfNotExists(Model2FileName); FileChecker <ClientsBusinessInformation> .AutoCreateIfNotExists(Model1FileName); }
public AdminContactInformationController() { Model1 = new XPayContactInformation().GetType().Name; Model1FileName = AppDataFolder + "InnerAPI\\" + Model1 + ".json"; FileChecker <XPayContactInformation> .AutoCreateIfNotExists(Model1FileName); }
public static void CheckDataTable() { string filePath = HostingEnvironment.ApplicationPhysicalPath + "App_Data\\data-table.json"; FileChecker <DataTable> .AutoCreateIfNotExists(filePath); }
public MerchantCategories() { Model1 = new MerchantCategory().GetType().Name; Model1FileName = AppDataFolder + "InnerAPI\\" + Model1 + ".json"; FileChecker <MerchantCategory> .AutoCreateIfNotExists(Model1FileName); }
public AdminBusinessTypesController() { Model1 = new BusinessType().GetType().Name; Model1FileName = AppDataFolder + "InnerAPI\\" + Model1 + ".json"; FileChecker <BusinessType> .AutoCreateIfNotExists(Model1FileName); }