Пример #1
0
 public void updateEmail(Users_BuisnessOwner user, string email)
 {
     db.Users_BuisnessOwner.Find(user.userName).User.email = email;
     db.SaveChanges();
 }
Пример #2
0
 public void updatePhone(Users_BuisnessOwner user, string phone)
 {
     db.Users_BuisnessOwner.Find(user.userName).User.phone = phone;
     db.SaveChanges();
 }
Пример #3
0
 public void updatePassword(Users_BuisnessOwner user, string password)
 {
     db.Users_BuisnessOwner.Find(user.userName).User.password = password;
     db.SaveChanges();
 }
Пример #4
0
 public void updateName(Users_BuisnessOwner user, string name)
 {
     db.Users_BuisnessOwner.Find(user.userName).User.fullName = name;
     db.SaveChanges();
 }
Пример #5
0
 public void removeUsers_BuisnessOwner(Users_BuisnessOwner b)
 {
     db.Users_BuisnessOwner.Remove(b);
     db.SaveChanges();
 }
Пример #6
0
        public Users_BuisnessOwner findUsers_BuisnessOwner(Users_BuisnessOwner buis)
        {
            Users_BuisnessOwner b = db.Users_BuisnessOwner.Find(buis.userName);

            return(b);
        }
Пример #7
0
        public bool existsUsers_BuisnessOwner(Users_BuisnessOwner buis)
        {
            Users_BuisnessOwner b = db.Users_BuisnessOwner.Find(buis.userName);

            return(b != null);
        }
Пример #8
0
 public void addUsers_BuisnessOwner(Users_BuisnessOwner b)
 {
     db.Users_BuisnessOwner.Add(b);
     db.SaveChanges();
 }
 public void updateOwner(Buisness b, Users_BuisnessOwner user)
 {
     db.Buisnesses.Find(b.buisName).Users_BuisnessOwner = user;
     db.SaveChanges();
 }