public IActionResult Post(Meal meal) { //we'll go with automatic modelstate validation mealsService.CreateMeals(new[] { meal }); return(CreatedAtAction(nameof(GetById), new { id = meal.Id }, meal)); }