public bool CreateUserAccount(string email, string password, AccountType accountType, string host) { var ret = false; var registrationCode = GenerateRandomNumberString(100); var passwordHash = PasswordHasher.HashPassword(password); if (true == _customDataAccess.CreateUserAccount(email, passwordHash, accountType, registrationCode)) { if (true == SendThroughProduction(email, "Youth in View Account Registration", BuildRegistrationEmail(host, registrationCode))) { ret = true; } } return(ret); }