public async Task <object> Register(T_JSON model) { T_Customer customer = new T_Customer(); object effects = 0; if (model.Input0 != null) { string s = string.Empty; s = POSTJson.ResolveTJSON(model); customer = JsonConvert.DeserializeObject <T_Customer>(s); effects = await T_Customer_BLL.SaveCustomer(customer); } return(Ok(new { statusCode = 200, result = effects })); }
public async Task <object> Submit(T_JSON model) { T_Customer_Role role = new T_Customer_Role(); object effects = 0; if (model.Input0 != null) { string s = string.Empty; s = POSTJson.ResolveTJSON(model); role = JsonConvert.DeserializeObject <T_Customer_Role>(s); effects = await T_Customer_BLL.SaveCustomerRole(role); } return(Ok(new { statusCode = 200, result = effects })); }
public async Task <object> Save(T_JSON model) { object effects = 0; T_Customer_Task task = new T_Customer_Task(); if (model.Input0 != null) { string s = string.Empty; s = POSTJson.ResolveTJSON(model); task = JsonConvert.DeserializeObject <T_Customer_Task>(s); effects = await T_Customer_BLL.SaveCustomerTask(task); } return(Ok(new { statusCode = 200, result = effects })); }