Hi,
I need some clarification on MVC web api.
1. use of MVC web Api
2. how to implement MVC web Api
3. diff b/w normal MVC and MVC web Api
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Nov 14, 2014, 6:01 AM
Ans:
1. ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices.
2. You can implement MVC Web API by creating MVC Web API project from Visual Studio.
http://www.c-sharpcorner.com/UploadFile/4b0136/implement-Asp-Net-web-api-2-in-Asp-Net-mvc-5/
http://www.asp.net/aspnet/samples/aspnet-web-api
http://www.codeproject.com/Articles/344078/ASP-NET-WebAPI-Getting-Started-with-MVC-and-WebAP
3. MVC & Web API are almost same with few differences. MVC controllers returns VIEWs whereas Web API returns HttpResponse. More info here
Abhishek KumarPosted Nov 14, 2014, 5:29 AM
Please try to follow below articles for your questions.
http://www.dotnet-tricks.com/Tutorial/webapi/VG9K040413-What-is-Web-API-and-why-to-use-it-?.html
http://www.dotnet-tricks.com/Tutorial/webapi/Y95G050413-Difference-between-ASP.NET-MVC-and-ASP.NET-Web-API.html
Let me know if you find any difficulty in understanding.
Hope this will help.
Abhishek