You can put them in separate namespaces, e.g MyApp.Controllers.UsersController and MyApp.Controllers.WebAPI.UsersController.
This would let you expose similar URI routes in MVC and WebAPI, eg:
/users/1 << MVC view
/api/users/1 << Web API
More Related Contents:
- Submit same Partial View called multiple times data to controller?
- ASP.NET MVC 4 Custom Authorize Attribute with Permission Codes (without roles)
- Pass data to layout that are common to all pages
- How to validate file type of HttpPostedFileBase attribute in Asp.Net MVC 4?
- How to add reference to System.Web.Optimization for MVC-3-converted-to-4 app
- Anti forgery token is meant for user “” but the current user is “username”
- How to add global ASP.Net Web Api Filters?
- Role based authentication in the new MVC 4 Internet template using simplemembership
- unobtrusive validation not working with dynamic content
- ViewModels or ViewBag?
- How do I use my own database with SimpleMembership and WebSecurity? What is MVC4 security all about?
- How to create ASP.NET Web API Url?
- ASP.NET 4.5 has not been registered on the Web server
- ASP.NET MVC 4 custom Authorize attribute – How to redirect unauthorized users to error page? [duplicate]
- The required anti-forgery form field “__RequestVerificationToken” is not present Error in user Registration
- MVC 4 Beta side by side installation error
- MVC 4 date culture issue?
- WebApi Json.NET custom date handling
- where should i place the js script files in a mvc application so jquery works well?
- What effect does the new precompile during publishing option have on MVC4 applications?
- ASP.NET MVC 4 Editor Template for basic types
- Automatic Migrations for ASP.NET SimpleMembershipProvider
- Problems implementing ValidatingAntiForgeryToken attribute for Web API with MVC 4 RC
- How to add and get Header values in WebApi
- Web API in MVC solution in separate project
- Calling another different view from the controller using ASP.NET MVC 4
- MVC4 – Bundling does not work when optimizations are set to true
- All requests to ASP.NET Web API return 404 error
- show only the date in @Html.EditorFor helper
- ASP.NET MVC: RedirectToAction with parameters to POST Action