예제 #1
0
        /// <summary>
        /// 开通账号
        /// </summary>
        /// <returns></returns>
        private Account OpenAccount()
        {
            var cmd = new CreateAccount(_accountName, _password, this.RoleIds)
            {
                Email        = this.Email ?? string.Empty,
                MobileNumber = this.MobileNumber ?? string.Empty,
                IsEnabled    = this.IsEnabled
            };

            return(cmd.Execute());
        }