Beispiel #1
0
        private string ChangePassword(string newpass, string username)
        {
            Adminbll bll      = new Adminbll();
            Admin    model    = new Admin();
            bool     blResult = false;

            model.PassWord = newpass;
            model.UserName = username;

            blResult = bll.ChangeLoginPassword(model);

            if (blResult)
            {
                return(newpass);
            }
            else
            {
                return("修改失败");
            }
        }
 public List <AdministratorInfo> GetAdmin()
 {
     return(Adminbll.Get());
 }
 public int AddAdmin(AdministratorInfo admin)
 {
     return(Adminbll.Add(admin));
 }