public IActionResult Create([FromBody] Order newOrder) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var result = ordersStorageInst.CreateOrder(newOrder); return(Ok(result)); }