Feb 18, 2021 02:20 PM|mgebhard|LINK
So, according to this error I should also define a @model directive into the CSHTML file but I can only give one ?
A view model (C# class) can contain one or many models. This is generally referred to a complex type or in MVC a View Model when the data is used to generate the UI (View).
I recommend going through the Getting Started tutorials on this site as they cover these basic MVC programming concepts.