Пример #1
0
        public bool CreateUser(SignUpRequest request)
        {
            var email    = _infraDal.GetParameter("P_EMAIL", request.Login.Email);
            var username = _infraDal.GetParameter("P_USER_NAME", request.Login.Username);

            try
            {
                _infraDal.ExecuteSpQuery(_connection, "CREATE_USER", email, username);
            }
            catch (Exception)
            {
                return(false);
            }
            return(true);
        }