title: Declaring List inside a Model
body: <p>I have a scenario where I don't want to pass a model as an <code>Ienumerable</code> list 
  to the Razor View.</p>
  
  <pre><code>public class School
  {
     public int ID { get; set; }
     public string Name { get; set; }
     public string Address { get; set; }
  }
  </code></pre>
  
  <p>I need to pass the model to view as below.</p>
  
  <pre><code>@model Doc.Web.Models.Common.School
  </code></pre>
  
  <p>not as</p>
  
  <pre><code>@model IEnumerable&lt;Doc.Web.Models.Common.School&gt;
  </code></pre>
  
  <p>So, I decalred a List inside the same Model</p>
  
  <pre><code>public class School
  {
      public School()
      {
          lstSchool = new List&lt;School&gt;();
      }
  
      public int ID { get; set; }
      public string Name { get; set; }
      public string Address { get; set; }
  
      public List&lt;School&gt; lstSchool { get; set; }
  }
  </code></pre>
  
  <p>Then in the controller</p>
  
  <pre><code>public ActionResult Index()
  {
     School model= new School();
     SchoolRepository rep = new SchoolRepository();
     model.lstSchool= rep.GetData();//Read list of schools from database
     return View(model);
  }
  </code></pre>
  
  <p>is this the proper way to achieve this?</p>