-2

What is the big difference between normal asp.net mvc and asp.net web api ? When i know i can use a normal action result to return a Json data and call it with javascript or an ajax onsuccess function or even with jquery GetJson() function.

cerberus
  • 331
  • 2
  • 9

2 Answers2

0

Here is similar post ASP.NET WebApi vs MVC.
The answer is not accepted one, but the other one.
Or check this or this.

Community
  • 1
  • 1
Peter Ožbot
  • 246
  • 4
  • 7
0

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.

ASP.NET Web API vs. ASP.NET MVC “APIs”

MMM
  • 3,132
  • 3
  • 20
  • 32