If you are using database model binding in return or reponse then MVC
If you are using ViewModels of each response then MVVM.
The basic MVCVM guidelines we follow are:
Views display a certain shape of data. They have no idea where the data comes from.
ViewModels hold a certain shape of data and commands, they do not know where the data, or code, comes from or how it is displayed.
Models hold the actual data (various context, store or other methods)
Controllers listen for, and publish, events. Controllers provide the logic that controls what data is seen and where. Controllers provide the command code to the ViewModel so that the ViewModel is actually reusable.
Hey it's a mvc but does not contain v(or view) in it. For view you need to use some other technologies like react,vue or other etc. Below is a link which explains what is the exact difference between mvc and mvvm.
In mvvm, we basically, use separate viewmodel for data binding into views or api response. The viewModels are not use for database communications i.e. they are not database models.
Rijwan AnsariRank #82 · 24.2K reputationPosted Apr 2, 2021, 1:45 PM EDT
Salman BegRank #284 · 8.8K reputationPosted Apr 2, 2021, 2:24 AM EDT
Satya KarkiRank #78 · 24.6K reputationPosted Apr 3, 2021, 6:43 AM EDT
Sanjay Kumar161 reputationPosted Jun 30, 2021, 11:54 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts