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)); } }