コード例 #1
0
        public string RegisterUser(string username, string password)
        {
            try
            {
                if (string.IsNullOrEmpty(username) || string.IsNullOrEmpty(password))
                {
                    throw new Exception("The login information supplied is invalid. Please enter a valid Inform RMS username and password.");
                }

                _userCommandService.CreateUserFromClassicRms(username, password);
            }
            catch (Exception exception)
            {
                return(exception.Message);
            }

            return("success");
        }