Error: IEnumerable<CommonViewModel>' does not contain a definition for '<Propertyof Modelclass>
<p>I have a commonViewModel which contains a List of other models.
i am not able to refer the List of models which are in commonViewModel  in my View through foreach, 
Really appreciate your help!
Here is my View:</p>

<pre><code>@model IEnumerable&lt;MvcApplication1.ViewModels.Models.CommonViewModel&gt;

&lt;h2&gt;All types of questions asked here&lt;/h2&gt;

@foreach (var Mylist in Model.Question1)
{
&lt;li&gt;@Mylist.Question1&lt;/li&gt;
} 
</code></pre>

<p>commonViewModel class looks like below</p>

<pre><code>public class CommonViewModel
{
    public List&lt;Question&gt; Question1 {get; set;}
    public List&lt;MenuItem&gt; MenuItem { get; set; }

}
</code></pre>

<p>Question Class looks like below:</p>

<pre><code>public partial class Question
{
    public int id { get; set; }
    public string question1 { get; set; }
}
</code></pre>

<p>Error: Model.Question1 in View is not identified.</p>

<p>Error   CS1061  'IEnumerable' does not contain a definition for 'Question1' and no extension method 'Question1' accepting a first argument of type 'IEnumerable' could be found (are you missing a using directive or an assembly reference?)</p>