Esempio n. 1
0
 public IActionResult Post([FromBody] OrderCommand command)
 {
     try
     {
         _orderAppService.Add_a_new_Order_and_Order_Item_for_an_existing_Customer(command);
         return(Ok("Customer added with success."));
     }
     catch (System.Exception ex)
     {
         return(Problem(ex.Message));
     }
 }