title: Error CS0135: 'Model' conflicts with the declaration 'System.Web.Mvc.ViewPage<TModel>.Model'
body: <p>i'm having issues trying to implement a forloop in a view using a ViewModel.</p>
  
  <p>I have this ViewModel</p>
  
  <pre><code>public class EventDashboard
  {
      public int Id {get;set;}
  
      public string Name {get;set;}
      public string Email {get;set;}
      public string Phone {get;set;}
  
      public ICollection&lt;FighterDetails&gt; FightersFees{ get; set; }
  
      public void LoadFighterDetails(int eventId, int fighterId, aContext ac, bContext bc){
  
          Fighters fighter = ac
              .Fighters
              .Include(npo =&gt; npo.FighterAddress)
              .FirstOrDefault(npo =&gt; npo.FighterId== fighterId);
  
          this.Name = fighter.Name;
                      this.Email = fighter.Email;
                      this.Phone = fighter.Phone;
  
          LoadFees(bc, fighterId);
      }
  
      public void LoadFees(bContext bc, int fighterId)
      {
                   var fees = bc.Fees.Where(f =&gt; f.fighterId == fighterId);
                   FightersFees = new List&lt;FighterDetails&gt;();
  
                   foreach(var f in fees){
                      this.FightersFees.Add(new FighterDetails{
                               //fill the properties
                         });
                   }
              }
      }
  
  public class FighterDetails
  {
      public string FighterName { get; set; }
      public int fighterId { get; set; }
      public decimal FighterFee { get; set; }
  }
  </code></pre>
  
  <p>on my view:</p>
  
  <pre><code>        &lt;% foreach( var d in Model.Fighters){ %&gt;
          &lt;%} %&gt;
  </code></pre>
  
  <p>but it keeps pushing out that error (on subject). wonder why it happens on viewmodels. any thoughts on how to help me understand this error is very much appreciated.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <ul>
  <li><p>added the rest of the code</p></li>
  <li><p>and the project is currently using ef 4.0. not sure if that will be relevant.</p></li>
  </ul>