コード例 #1
0
        public Task <IActionResult> Execute(JObject jObj)
        {
            if (jObj == null)
            {
                throw new ArgumentNullException(nameof(jObj));
            }

            var command = _requestBuilder.GetBuyUpsLabelCommand(jObj);

            command.Credentials = new UpsParams.UpsCredentials
            {
                LicenseNumber = Constants.UpsCredentials._accessLicenseNumber,
                Password      = Constants.UpsCredentials._password,
                UserName      = Constants.UpsCredentials._userName
            };
            command.EmailAddress = "*****@*****.**";
            _commandSender.Send(command);
            return(Task.FromResult <IActionResult>(null));
        }