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

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -