예제 #1
0
 public ActionResult <Order> SetStatus(int number, [FromQuery] OrderStatus status, [FromQuery] string comment)
 {
     try
     {
         return(_ordersRepo.ChangeOrderStatus(number, status, comment));
     }
     catch (Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }