Example #1
0
 public async Task <IActionResult> Post([FromBody] Order ord)
 {
     //Order order = JsonConvert.DeserializeObject<Order>(ord.ToString(), new IsoDateTimeConverter { DateTimeFormat = "yyyy-MM-dd" });
     if (await dbcontrol.PutOrder(ord) > 0)
     {
         return(new OkResult());
     }
     else
     {
         return(new BadRequestResult());
     }
 }