Exemplo n.º 1
0
 public void ChangePassword(string password)
 {
     AdminModelContainer mc = new AdminModelContainer();
     var admin = (from x in mc.AdminSet select x).First();
     admin.Password = password;
     mc.SaveChanges();
 }
Exemplo n.º 2
0
 public void ChangeLogin(string login)
 {
     AdminModelContainer mc = new AdminModelContainer();
     var admin = (from x in mc.AdminSet select x).First();
     admin.Login = login;
     mc.SaveChanges();
 }