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