I have two types of controller in my application. One WebApi controller and one MVC controller. With the following structure of my project:
Project
|-- Controllers
| |-- Api
| | |-- AccountController
| | |-- ...
| |-- AccountController
| |-- ...
As you can see, I have AccountController twice in two different namespaces though. The one in the folder Api is the WebApi controller and the one under Controllers is a MVC controller.
I would like to use @Url.Action("GetAll", "Account") inside my view to generate a link to my WebApi controller. How do I differentiate between the Api controller and the MVC controller. How can I tell it whether to use the Api or MVC controller?