title: How to set bool value to true in mvc entityframework
body: <p>Briefly</p>
  
  <p>I'm creating a social site in MVC5.....
  I've a model User where i have some of these properties fname,lname,username,email,isNew...etc</p>
  
  <p>so i've set isNew to false and when i press Login Button i've a if condition:</p>
  
  <p>if(isNew==true) than redirect...to Index(A.M) Home(C) ....</p>
  
  <p>else redirect....to NewUser(A.M) Steps(C)...</p>
  
  <p>Now when i clicked Login Button its works pretty good i mean it redirect me to Steps(Controller) NewUser(ActionMethod) now here i want to set isNew value to true but i've no idea how to do this </p>
  
  <p>This is what i have tried...</p>
  
  <pre><code>public ActionResult NewUser(User model)
      {
          using (DbAccess db=new DbAccess())
          {
  
              var original=db.users.Find(model.uid);
              original.isNew = true;
                //var entry = db.Entry(original);
                //entry.Property(e =&gt; e.isNew).IsModified = true;
              db.SaveChanges();
          }
          return Content("Welcome");
      }
  </code></pre>
  
  <p>i'm new to Mvc/EntityFramework/Linq so no idea how to update this bool value...</p>