I am working on an MVC 5 application. In that i have created an Area named Organization. I have also created an (API) folder in controllers folder of that Area. So my structure have become like
/Areas/Organization/Controllers/API/OrganizationAPI
Where OrganizationAPI is API Controller for Organization Area. Now my problem is regarding Routing in MVC. I am unable to find what URL will invoke my API.
I have tried with this URL
http://localhost:80/Organization/API/OrganizationAPI/getData
where getData is My action method. But it says resource not found. Can any please help me in understanding that how can i register my own routes so that i can map my actions with URLs and also suggest me some reference URL for URL Routing in MVC 4 or above.