public IActionResult Create([FromBody] Dish dish) { if (!ModelState.IsValid) { return(BadRequest()); } db.Create(dish); db.Save(); return(Ok(dish)); }