public bool DeleteUserInfoTable() { try { UserInfoQueryBLL.UserInfoDelete(_userName); } catch (Exception ex) { //LogHelper.ToLog("DBErr.txt", ex); return(false); } return(true); }
public bool UpdateUserInfo() { Mubea_BTDataSet.UserInfoRow row = UserInfoQueryBLL.UserInfoTable.FindByNameId(UserID); if (row != null) { row.UserName = this.UserName; row.Password = this.Password; row.Role = this.Role; return(UserInfoQueryBLL.UpdateUserInfo(row)); } return(false); }
/// <summary> /// UpdateSampleMain, update sample info into samplemian, if update succeed, return True, else return False /// </summary> /// <returns></returns> public bool InsertUserInfoTable() { try { UserInfoQueryBLL.UserInfoInsert(_userID, _userName, _password, _role); } catch (Exception ex) { //LogHelper.ToLog("DBErr.txt", ex); return(false); } return(true); }
public static List <string> GetUsersName() { return(UserInfoQueryBLL.GetUsers()); }