public IActionResult PostMeal([FromBody] Meal meal) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } _mealsService.CreateMeal(meal); return(CreatedAtAction("GetMeal", new { id = meal.MealId }, meal)); }