public SignUpResponse SignUp(SignUpRequest request) { SignUpResponse response = new SignUpResponse(); bool accountExists = m_AccountResourceAccess.AccountExists(request); if (!accountExists) { response = m_AccountResourceAccess.SignUp(request); } else { response.ErrorMessage = "Account already exists! Please try signing in"; response.SignUpSuccessful = false; } return(response); }
public bool AccountExists(SignUpRequest request) { return(m_AccountResourceAccess.AccountExists(request)); }