public IActionResult Update(int orderId, [FromBody] Order order) { try { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = ordersStorageInst.UpdateOrder(orderId, order); return(Ok(result)); } catch (ApplicationException e) { return(BadRequest(e.Message)); } }