title: making login screen by using asp.net mvc 4 project
body: <pre><code>  using (ReetaEntities dc = new ReetaEntities())
    {
      var v = dc.User.Where(a =&gt; a.Username.Equals(u.UserName) &amp;&amp; a.Password.Equals(u.Password)).FirstOrDefault();
      if (v != null)
      {
        Session["LogedUserID"] = v.UserId.ToString();
        Session["LogedUserName"] = v.Name.ToString();
        return RedirectToAction("AfterLogin");
      }
    }
  }
  return View(u);
  </code></pre>
  
  <blockquote>
    <p>Error  3   'Entity.user' does not contain a definition for 'UserName' and no extension method 'UserName' accepting a first argument of type 'Entity.user' could be found (are you missing a using directive or an assembly reference?) D:\Rita\Entity\Entity\Controllers\HomeController.cs 46  68  Entity
    Error   2   'Entity.ReetaEntities' does not contain a definition for 'User' and no extension method 'User' accepting a first argument of type 'Entity.ReetaEntities' could be found (are you missing a using directive or an assembly reference?)   D:\Rita\Entity\Entity\Controllers\HomeController.cs 46  32  Entity
    Error   1   'Entity.ReetaEntities' does not contain a definition for 'user' and no extension method 'user' accepting a first argument of type 'Entity.ReetaEntities' could be found (are you missing a using directive or an assembly reference?)   D:\Rita\Entity\Entity\Controllers\HomeController.cs 46  33  Entity</p>
  </blockquote>