Jan 14, 2020 07:17 PM|mgebhard|LINK
The ViewModel type Jobs_ViewModel_Class does not match the View fields and the model definition (at the top of the View) is a collection when you need a single type.
So I will ask again.. Can a view model be used in a details view. If so can you point me to an example of such things happening with a single table view model??
Your question is like asking, "Can I drive a car to work?". "What about a truck, can I drive a truck to work?" The answer is yes of course.
By definition a View Model is nothing more than a Model for a View - a simply class that contains properties. What's crazy is you are technically using View Models.
I believe the problems you are having has to do with understanding terms, C# language constructs, and the MVC framework. That's a tall order. It takes effort and time to learn this stuff. Unfortunately, the community and tutorials are unable to reach
you because you do not have the fundamental knowledge and you struggle to understand the solutions provided.
My best recommendation is going through the tutorial in my last post. It has an example of a View Model around step 7.
Once you have completed the tutorial above, the community will be better equipped to help as we (the community) will have the same project.