AmbassadorSpock
asked on
MVC 4: Several Models in one Model causing an error
I have several Models defined such as RescueFormsAdministration. Models.Acc ount that I have given the name AccountModel and a wrapper Model RescueFormsAdministration. Models.Cre ateAccount ViewModel that contains the Account and other Models in order to pass it to one View. This works until I run it and then I get the error below:
"The model item passed into the dictionary is of type 'RescueFormsAdministration .Models.Ac count', but this dictionary requires a model item of type 'RescueFormsAdministration .Models.Cr eateAccoun tViewModel '. "
Does anyone know how to fix the problem?
"The model item passed into the dictionary is of type 'RescueFormsAdministration
Does anyone know how to fix the problem?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.