ASP.NET MVC ActionLink outside the area

-1

I'm having a hard time making a simple functionality. I have an area called "project":

  

Thegoalissimple:IneedtocreateanHtml.ActionLinkthatgeneratesalinktoreturnthehomepagethatisOUTSIDEoftheprojectarea,suchasthesiteroot.Itriedtocallitlikethis:

@Html.Action("ACTION","CONTROLLER")

Code of controller :

// GET: Relatorio
public ActionResult ModalRelMapaAeronave()
{
    return PartialView("ModalRelMapaAeronave");
}

But the correct view is not being called. What is the correct way to call?

    
asked by anonymous 13.10.2017 / 16:38

1 answer

1

To indicate that you will not access a Controller from within your area , enter it as the empty parameter in the call:

@Html.Action("ACTION","CONTROLLER", new { area = "" })
    
13.10.2017 / 16:59