public Status registerNewUser(string User_first_name, String user_last_name, string User_Email, string User_password, String register_datetime) { Status status = new Status(); status = LoginRegisterMethods.checkIfEmailExists(User_Email); if (status.State == 1) { status.State = 0; status.Exception = "Email already been used " + User_Email; return(status); } else if (status.State == -1) { status.Exception = "check your email and pasword"; return(status); } else { return(LoginRegisterMethods.OnInsertingNewUser(User_first_name, user_last_name, User_Email, User_password, register_datetime)); } }
public Status deleteAccount(int user_id, String password) { return(LoginRegisterMethods.deleteAccount(user_id, password)); }
public Status getSettings(int user_id) { return(LoginRegisterMethods.getSettings(user_id)); }
public Status settings(int user_id, bool state, int type) { return(LoginRegisterMethods.settings(user_id, state, type)); }
public Status userOnline(int user_id, bool state) { return(LoginRegisterMethods.userOnline(user_id, state)); }
public Status loginWithEmailAndPassword(string User_Email, string User_password) { return(LoginRegisterMethods.checkIfExists(User_Email, User_password)); }
public Status checkIfEmailExists(string User_Email) { return(LoginRegisterMethods.checkIfEmailExists(User_Email)); }