How to call Actionresult from another Area with an html link?

Asked

Viewed 883 times

1

Hello, I have a link in a View and I need to direct this link to a ActionResult that is in another Area of my project.

Is a link from Sair to call on the a ActionResult Logoff.

1 answer

2


Use:

@Html.ActionLink("Texto do Link", "Acao", new { area = "Tal", controller = "ControllerDaAreaTal" } )
  • Perfect. It worked right away.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.