What is mvc and web api in .net framework? When to use which one? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is mvc and web api in .net framework? When to use which one?

I not getting the difference between them. Can someone help me with their usage

30th Aug 2018, 6:33 AM
Prakash
Prakash - avatar
5 Answers
+ 1
MVC is a web application design pattern, its composed of Models which are your data structure and are how the application manages a database. Views which generate the html that users see, a lot of this will be generated from templates in large applications. Controllers which connect urls to Views. Web api is for creating an API for you application which is a way for other programs to Create, Read, Update, Delete data from you application
30th Aug 2018, 10:59 AM
JME
+ 1
No, MVC is for creating websites. Microsoft, Dell, stackoverflow and other large sites are built using this. web api is used for making api's
31st Aug 2018, 9:07 AM
JME
+ 1
people use websites, programs use api. If you want to tweet you go to twitter.com . If you want a program youve made to tweet you link it to twitters api.
31st Aug 2018, 9:27 AM
JME
0
Basically ,MVC is an architecture for creating web api's right? Jason Edelson
31st Aug 2018, 9:00 AM
Prakash
Prakash - avatar
0
So API n Website is different? I am totally confused .Can you help me with that
31st Aug 2018, 9:15 AM
Prakash
Prakash - avatar