Vamsi k

Vamsi k

  • NA
  • 296
  • 43k

Why we are viewmodel

Jul 18 2019 2:22 AM
Hi All,
 
Normally, we are binding one model class to one view. Incase if we want to bind morethan one model class to one view we need to take the concept of ViewModel(2 or more model classes we can bind). 
 
Here my doubt is why only 'view model' has only provided as a solution?
 
Any another possible ways of binding more than 1 model class to view in MVC apart from ViewModel concept?
 
Please provide your answers.
 
Regards
 
KVD 

Answers (3)