- Asp.Net MVC is used to create web applications that returns both views and data but Asp.Net Web API is used to create full blown HTTP services with easy and simple way that returns only data not view.
- Web API helps to build REST-ful services over the .NET Framework and it also support content-negotiation(it's about deciding the best response format data that could be acceptable by the client. it could be JSON,XML,ATOM or other formatted data), self hosting which are not in MVC.
- Web API also takes care of returning data in particular format like JSON,XML or any other based upon the Accept header in the request and you don't worry about that. MVC only return data in JSON format using JsonResult.
- In Web API the request are mapped to the actions based on HTTP verbs but in MVC it is mapped to actions name.
- Asp.Net Web API is new framework and part of the core ASP.NET framework. The model binding, filters, routing and others MVC features exist in Web API are different from MVC and exists in the new System.Web.Http assembly. In MVC, these featues exist with in System.Web.Mvc. Hence Web API can also be used with Asp.Net and as a stand alone service layer.
Monday, 22 October 2018
Subscribe to:
Post Comments (Atom)
Topics
ADFS
(1)
ADO .Net
(1)
Ajax
(1)
Angular
(47)
Angular Js
(15)
ASP .Net
(14)
Authentication
(4)
Azure
(3)
Breeze.js
(1)
C#
(49)
CD
(1)
CI
(2)
CloudComputing
(2)
Coding
(8)
CQRS
(1)
CSS
(2)
Design_Pattern
(7)
DevOps
(4)
DI
(3)
Dotnet
(10)
DotnetCore
(19)
Entity Framework
(4)
ExpressJS
(4)
Html
(4)
IIS
(1)
Javascript
(17)
Jquery
(8)
Lamda
(3)
Linq
(10)
microservice
(4)
Mongodb
(1)
MVC
(46)
NodeJS
(8)
React
(10)
SDLC
(1)
Sql Server
(32)
SSIS
(3)
SSO
(1)
TypeScript
(3)
UI
(1)
UnitTest
(2)
WCF
(14)
Web Api
(16)
Web Service
(1)
XMl
(1)
Pages
- Dotnet Core Interview Q/A
- React JS Interview Questions and Answers
- Angular Interview Q/A
- Node JS Interview Q/A
- Azure Interview Q/A
- .Net Interview Q/A
- WEB API Interview Q/A
- Javascript Interview Q/A (Part- 1)
- Javascript Interview Q/A (Part- 2)
- SQLServer Interview Questions
- SQL - Query Related Interview Q/A
- ASP .Net MVC Interview Q/A
- Angular Testing Interview Q/A
- Lead level Interview Q/A
- WCF Interview Q/A
- ExpressJS Interview Q/A
- MongoDB Interview Q/A
- C# Programs Output Q/A
- InterView Programming
- ASP .Net Interview Q/A
- Angularjs Interview Q/A
- SQL Server 2005/2008 Functions
- Entity Framework Interview Q/A
- JQuery Selectors / Methods
- Ado .Net InterView Q/A
- LINQ Operators and Lambda Expression
0 comments:
Post a Comment