MVC Quick Tips

1. How to redirect to another action from with in an Action
return
RedirectToAction("ToActionName", new { id = 99 });

id will be name of parameter for which value is being passed.

Advertisements