redirecttoaction routevalues code example
Example 1: redirecttoaction with parameters
return RedirectToAction("Action", new { id = 99 });
Example 2: redirecttoaction not sending id
return RedirectToAction("IngredientIndex", new { id = id });
return RedirectToAction("Action", new { id = 99 });
return RedirectToAction("IngredientIndex", new { id = id });