Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
I have 3 web api controllers in one project.
One is at root level and remaining two are in two different areas.

How to route them ?
Posted
Updated 16-Feb-15 18:08pm
v3

Namespace is irrelevant here...
All you have to do is include the area name in your link...
C#
@Html.ActionLink("Action", "Controller", "ActionName", new { area = "Area" })
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900