Last post Jan 12, 2019 02:53 PM by Bill Tank
Jan 12, 2019 02:26 PM|Bill Tank|LINK
I'm new in ASP.NET MVC, I can see many many descriptions about Model, View and Controller. Anyone can please inform me what are the roles of these?
Thanks for your answer!
Jan 12, 2019 02:32 PM|DA924|LINK
Jan 12, 2019 02:41 PMemail@example.com|LINK
Hi Bill Tank,
You can get so many ideas at online. But simply you can understand or structure in your mind as
View - interacts with the user, it has HTML part, on submit the form it calls controller
Controller - it checks for information whatever added is valid or not? Not in database point of view.
It will just check for weather all the mandatory fields are filled or not? Then it decides which model to call.
Model - it contains class of view. and also some methods like add,modify or delete to deal with the database.
Please don't forget to mark as answer if it helps you. Thanks!
Jan 12, 2019 02:53 PM|Bill Tank|LINK
Thanks to both of you guys