What is ViewModel in ASP.NET MVC
In ASP.NET MVC, ViewModel is a class that contains the fields which are represented in the strongly-typed view. It is used to pass data from controller to strongly-typed view. ViewModel can have specific validation rules using data annotations.