Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET Mvc Url Action Pass to Main Root From Admin Area

Now, i edit some pages on Admin Area on my ASP.NET MVC Project. How link go to Front End ?

<li><a href="@Url.Action("Index", "Home")"><i class="glyphicon glyphicon-globe"></i> Front End</a></li>
like image 469
halil Avatar asked Dec 22 '15 08:12

halil


1 Answers

You can add routeValue area in order to change it. So if you want to go to your main area you have to use something like this:

Url.Action("Index", "Home", new { area = "" })
like image 116
ssimeonov Avatar answered Oct 30 '22 17:10

ssimeonov