Where should I store WebAPI controllers inside ASP.NET-MVC 5 project? -


i have completed asp.net-mvc5 application(website) have lot of mvc controllers: enter image description here

i extent functionality of application exposing web api odata.

for instance create controller person model class, time should web api not mvc controller. should web api store in controller folder , call personwebapicontroller? work?

to answer question will work? yes

but if want separate code physically, can create custom folder under controllers folder, , place apicontrollers in newly created folder. if want separate mvc , api controllers logically, use different namespaces them.

technically can have controllers in custom made folder under visual studio project.


Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -