Reputation: 1242
I want to get URL of the default controller's default action method link, such that if I change default controller and action in route config then should be updated in the view too. e.g.
Url.Action(defaultAction,DefaultController);
//output should be like
Url.Action("Index","Home")
Upvotes: 3
Views: 1233