1.

What is MVC? Write difference between MVC and Web API?

Answer»

MVC (Model, View, and Controller) is basically an application design model that comprises three interconnect parts I.e., model, view, and controller. It allows coders to factor out different components of the application and UPDATE them more easily. It is mostly used for developing model user interfaces. Its main purpose is to display PATTERNS in structure for keeping display and data separate to enable both of them to change WITHOUT affecting others. 

MVCWEB API
It can be used to build Web applications that reply as both data and views.It is used to build HTTP services that reply only as data.
It returns data in JSON format by using JSONResult.It returns data in different formats such as JSON, XML, etc.
It supports content negotiation, self-hosting.It does not support content negotiation, self-hosting.
It is not able to build REST-full services.It is very helpful in CREATING REST-full services.
It returns a view (HTML).It returns REST responses.


Discussion

No Comment Found