public IActionResult ModifyOrder(int id, Order newOrder) { newOrder.Id = id; var rowsChanged = _oa.ModifyOrder(newOrder); return(rowsChanged == null ? BadRequest() as IActionResult : Ok(rowsChanged)); }