redirect to a view with id paraments in core mvc code example
Example 1: asp.net core redirecttoaction with parameters
RedirectToAction("Action", "Controller" ,new { id });
Example 2: redirecttoaction not sending id
return RedirectToAction("IngredientIndex", new { id = id });