Esempio n. 1
0
        public bool CreateUser(User user)
        {
            if (_userQueries.DoesUsernameExist(user.UserName))
            {
                return(false);
            }

            if (_userQueries.DoesEmailExist(user.Email))
            {
                return(false);
            }

            _userCommands.CreateUser(user);
            return(true);
        }