Example #1
0
        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);
        }
Example #2
0
 public bool AccountExists(SignUpRequest request)
 {
     return(m_AccountResourceAccess.AccountExists(request));
 }