Link to home
Start Free TrialLog in
Avatar of vcurtis
vcurtis

asked on

MVC 4 .cshtml Error Getting a system.collections.generic.IEnumerable

I just received the following error when I tried to run my MVC
The model item passed into the dictionary is of type 'ALFA.ViewModels.MeasuresCommitteesVM', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[ALFA.ViewModels.MeasuresCommitteesVM]'.


Can someone tell me how this is solved seeing that the following is true
  1) you cannot put a "using"  statement on cshtml
  2) When using a "using" statement in the model, you cannot add Generic.IEnumerable
 
Any help will be tremendously appreciated
ASKER CERTIFIED SOLUTION
Avatar of jitendra patil
jitendra patil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vcurtis
vcurtis

ASKER

Perfect