示例#1
0
 public async Task <ActionResult <int> > PostCustomer([FromBody] Customer customer)
 {
     try
     {
         return(Ok(await serviceManager.CreateCustomer(customer)));
     }
     catch
     {
         return(NotFound());
     }
 }
 public Response CreateCustomer(Dictionary <string, object> parameters)
 {
     return(serviceManager.CreateCustomer(parameters));
 }