Example #1
0
 public bool DeleteUser(Model.Userinfo MUS)
 {
     DAL.Userinfo DU = new DAL.Userinfo();
     if (DU.Delete(MUS) == 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #2
0
 public bool Register(Model.Userinfo MUS)
 {
     DAL.Userinfo R = new DAL.Userinfo();
     if (R.Insert(MUS) == 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #3
0
 public bool ForgetPassword(Model.Userinfo MUS)
 {
     DAL.Userinfo FP = new DAL.Userinfo();
     if (FP.Update(MUS) == 1)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }
Example #4
0
 public bool RepeatedName(Model.Userinfo MUS)
 {
     MUS.Password = null;
     DAL.Userinfo RN = new DAL.Userinfo();
     return(RN.SelectCount(MUS));
 }
Example #5
0
 public bool ValidatePassword(Model.Userinfo MUS)
 {
     DAL.Userinfo VP = new DAL.Userinfo();
     return(VP.SelectCount(MUS));
 }