mvc redirect to action with object parameter code example
Example 1: mvc redirect to action with parameters
return RedirectToAction("Action", new { id = 99 });
Example 2: mvc redirect to action with parameters
return RedirectToAction( "Main", new RouteValueDictionary(
new { controller = controllerName, action = "Main", Id = Id } ) );