When to use ASP.NET Webforms, MVC, Web API
-
ASP.NET has become increasingly complex. Webforms was the old but still valid technique. MVC means you can stucture your application better and have more controll. So is Web api a third technique or should I use it to create webservices and other things. So my questions is: Is Web Api a third technique to be used instead of webforms and MVC?
-
ASP.NET has become increasingly complex. Webforms was the old but still valid technique. MVC means you can stucture your application better and have more controll. So is Web api a third technique or should I use it to create webservices and other things. So my questions is: Is Web Api a third technique to be used instead of webforms and MVC?
Web API is not a substitute for webforms or mvc, it is for creating APIs (ergo the name), or basically things that have no visual interface themselves, they are endpoints other apps can call to "do things".
-
Web API is not a substitute for webforms or mvc, it is for creating APIs (ergo the name), or basically things that have no visual interface themselves, they are endpoints other apps can call to "do things".
-
Ok, thanks! Kind of what I guessed. Still a bit confusing that you can start a project as Web API I think. Feels like you should start MVC and then Add Web API. But I think I have to read more about it.
You might just be writing the API though and no front-end service. Even if your site does use API it is generally advised to keep the web api part in its own project anyway so you can enforce separation of concerns.
-
You might just be writing the API though and no front-end service. Even if your site does use API it is generally advised to keep the web api part in its own project anyway so you can enforce separation of concerns.
-
Ok, I see. Thanks! By the way, do you know of any good MVC 5 tutorial? I have tried some but they seem to get to comlicated to fast.
I used the "MVC Music Store" to get started with (just google it and you'll find it).
-
I used the "MVC Music Store" to get started with (just google it and you'll find it).
-
Ok, I see. Thanks! By the way, do you know of any good MVC 5 tutorial? I have tried some but they seem to get to comlicated to fast.
-
I tried to get some video tutorials for you, but for some reason, the moderators keep deleting my posts. Good luck, pal !
-
Oh, to bad. I have looked as some videos and in some ways it is easy to understand but then again not :) Thanks anyway! Edit: I saw the link in the email I got from the post so I see the video there. Thank you!
-
Ok, I see. Thanks! By the way, do you know of any good MVC 5 tutorial? I have tried some but they seem to get to comlicated to fast.
Check this one - Learn ASP.NET MVC 5 - Complete Tutorial 2015 [COMPLETE] - YouTube[^] But my favorite is Mosh's Step-by-step ASP.NET MVC Tutorial for Beginners - YouTube[^] This is not a full tutorial, but if you liked Mosh's, you can purchase the video @ Udemy.