When should we combined the MVC with Web API?




  • When we do the self hosting on the application, in it we combine both the MVC controller and the API in a single project and it helps for managing the AJAX requests and returns the response in XML, JSON and other Formats.
  • We combined the MVC and Web API for enabling the authorization for an application. In it we create two filters, one for the Web API and another for MVC.

Post a Comment

0 Comments