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
     });
 }
Beispiel #2
0
 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
     });
 }
Beispiel #3
0
 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
     });
 }
Beispiel #4
0
 public static string ResolveTJSON(T_JSON model)
 {
     KeyValuePair<string, object> _flowKeyValue = model.Input0.First();
     string s = JsonConvert.SerializeObject(_flowKeyValue.Value);
     return s;
 }