what is the difference between web api and mvc?
There are many differences between MVC and Web API, including: We can use the MVC for developing the Web application that replies as both data and views but the Web API is used for generating the HTTP services that replies only as data. ... But the MVC returns the data in the JSON format by using JSONResult.