title: The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[X]', but this dictionary requires a model item of type 'X'
body: <p>*CORRECTION</p>
  
  <p>The problem occurs when my view is called to populate a list from my user table.</p>
  
  <p><strong>The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[Mike.Models.User]', but this dictionary requires a model item of type 'Mike.Models.User'.</strong></p>
  
  <p>Here is my controller action:</p>
  
  <pre><code>    public ActionResult Registration(Mike.Models.User user)
      {
          if (ModelState.IsValid)
          {
              using (var db = new UserContext())
              {
  
                  var crypto = new SimpleCrypto.PBKDF2();
                  var encrypPass = crypto.Compute(user.password);
                  var sysUser = db.Users.Create();
  
                  sysUser.LastName = user.LastName;
                  sysUser.FirstName = user.FirstName;
                  sysUser.Email = user.Email;
                  sysUser.password = encrypPass;
                  sysUser.passwordSalt = crypto.Salt;
                  sysUser.UserID = user.UserID;
                  db.Users.Add(sysUser);
                  db.SaveChanges();
  
                  return RedirectToAction("Index", "Home");
              }
  
  
          }
  
          return View(user);
      }
  </code></pre>
  
  <p>Can someone please help me.... There are responses to similar questions on the internet but I believe mine is unique.. I have searched for weeks to no avail.</p>
  
  <p>Thanks in advance,</p>
  
  <p>Renior</p>
  
  <p>Here is my simple controller action...</p>
  
  <pre><code>   public ActionResult Index()
      {
  
          return View(db.Users.ToList());
  
      }
  </code></pre>
  
  <p>and my razor syntax.</p>
  
  <p>@model IEnumerable</p>
  
  <p>Im trying to populate a view of my user table list.. </p>