| S.No | Particulars | ASP.NET WebAPI | ASP.NET MVC |
|---|---|---|---|
| 1 | Create Web App | create full blown HTTP services with easy and simple way that returns only data not view. | returns both views and data |
| 2 | support content-negotiation | Yes | No |
| 3 | returning data | JSON,XML or any other based upon the Accept header in the request and you don't worry about that. | JSON format using JsonResult. |
| 4 | request are mapped | actions based on HTTP verbs | mapped to actions name. |
| 5 | assembly | System.Web.Http | System.Web.Mvc |
| 6 | mixed MVC and Web API controller | Web API since boths are different. | implement the authorization then you have to create two filters one for MVC |
ASP.Net Web API vs ASP.NET MVC
Labels:
ASP.Net