public static user RegisterStaffUser(string paraUserName, string paraPassword, string paraMobileNumber, user.UserType paratype) { throw new NotImplementedException(); }
public static user RegisterClientUser(string paraUserName, string paraPassword, string paraMobileNumber, user.UserType paratype) { Dictionary <string, Object> tmpInsertParameters = new Dictionary <string, object>(); tmpInsertParameters.Add("UserName", paraUserName); tmpInsertParameters.Add("Password", paraPassword); tmpInsertParameters.Add("MobileNumber", paraMobileNumber); user tmpUser = DbUtilities.InsertUser(tmpInsertParameters); DbUtilities.enableUserStatus(paraUserName, user.UserStatus.USER_STATUS_ONLINE | user.UserStatus.USER_STATUS_VERIFING); return(tmpUser); // throw new NotImplementedException(); }
public static user RegisterUser(string paraUserName, string paraPassword, string paraMobileNumber, user.UserType paratype) { // user tmp_user = DbUtilities.getUser(paraUserName); if (DbUtilities.isUserRegistered(paraUserName)) { return(null); } else { switch (paratype) { case user.UserType.TYPE_CLIENT: return(Clients.RegisterClientUser(paraUserName, paraPassword, paraMobileNumber, paratype)); break; case user.UserType.TYPE_EXPERT: return(Experts.RegisterExpertUser(paraUserName, paraPassword, paraMobileNumber, paratype)); break; case user.UserType.TYPE_STAFF: return(Staffs.RegisterStaffUser(paraUserName, paraPassword, paraMobileNumber, paratype)); break; default: return(null); } } }