mvc redirect to action with parameters
return RedirectToAction("Action","controller", new {@id=id});
0
9
return RedirectToAction("Action", new { id = 99 });
Thank you!
9
0
4.2
5
return RedirectToAction( "Main", new RouteValueDictionary(
new { controller = controllerName, action = "Main", Id = Id } ) );
Thank you!
5
0
Are there any code examples left?
New code examples in category Other