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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -