public void updateEmail(Users_SystemAdministrator user, string email)
 {
     db.Users_SystemAdministrator.Find(user.userName).User.email = email;
     db.SaveChanges();
 }
 public void updatePhone(Users_SystemAdministrator user, string phone)
 {
     db.Users_SystemAdministrator.Find(user.userName).User.phone = phone;
     db.SaveChanges();
 }
 public void updatePassword(Users_SystemAdministrator user, string password)
 {
     db.Users_SystemAdministrator.Find(user.userName).User.password = password;
     db.SaveChanges();
 }
 public void updateName(Users_SystemAdministrator user, string name)
 {
     db.Users_SystemAdministrator.Find(user.userName).User.fullName = name;
     db.SaveChanges();
 }
 public void removeUsers_SystemAdministrator(Users_SystemAdministrator user)
 {
     db.Users_SystemAdministrator.Remove(user);
     db.SaveChanges();
 }
        public Users_SystemAdministrator findUsers_SystemAdministrator(Users_SystemAdministrator user)
        {
            Users_SystemAdministrator b = db.Users_SystemAdministrator.Find(user.userName);

            return(b);
        }
        public bool existsUsers_SystemAdministrator(Users_SystemAdministrator user)
        {
            Users_SystemAdministrator b = db.Users_SystemAdministrator.Find(user.userName);

            return(b != null);
        }
 public void addUsers_SystemAdministrator(Users_SystemAdministrator user)
 {
     db.Users_SystemAdministrator.Add(user);
     db.SaveChanges();
 }
Ejemplo n.º 9
0
 public void updatAverageRank(CatalogCoupon cp, Users_SystemAdministrator newValue)
 {
     db.CatalogCoupons.Find(cp.catalogID).Users_SystemAdministrator = newValue;
     db.SaveChanges();
 }