Bit of confusion, which I'm sure can easily be cleared up :).
Lets say we have a table called "Contacts". The "Index" view for this table would be a datatable, listing all contacts in the table with First name, email and phone. Now, this would have a viewmodel containing Firstname, email and phone.
Next we would need a details page, which will have the details for each contact in full, IE, fullname, first or second contacts, other phone numbers, website address and notes etc. Should this be a second Viewmodel?
Then we'd have a create page, which had have all the fields to be filled in. Would this be another viewmodel?
Finally, would this all go into the same class file or separate files?