public void Update(tbl_Users user)
 {
     db.Entry(user).State = EntityState.Modified;
     db.Configuration.ValidateOnSaveEnabled = false;
     Save();
     db.Configuration.ValidateOnSaveEnabled = true;
 }
        public void Delete(int Id)
        {
            tbl_Users user = db.tbl_Users.Find(Id);

            db.tbl_Users.Remove(user);
        }
 public void Insert(tbl_Users user)
 {
     db.tbl_Users.Add(user);
     Save();
 }