What is viewmodel in asp.net mvc and how to use viewmodel in asp.net mvc with example. The viewmodel in asp.net mvc represents only the data we want to display on view whether it is used for displaying or for taking input from view.