4
Reply

What is ViewModel. ?

Lalit Raghav

Lalit Raghav

10y
893
0
Reply
    ViewModel Is Use To Pass Data but Not in strongly-typed view.
    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
    display the set of details
    View model represent only data that you want to display in view