예제 #1
0
        public IHttpActionResult GenerateGuide([FromBody] ShippingModel shipping)
        {
            try
            {
                var data = _customerService.GenerateGuide(shipping);

                if (data.error.HasError)
                {
                    _cubiqManagerService.PostLogService(CubiQManagerModel.KioskoService.CUSTOMERSERVICE, false, data.error.Message);
                }
                var response = new
                {
                    data
                };

                _cubiqManagerService.PostShippingData(data);

                return(Ok(response));
            }
            catch (Exception e)
            {
                return(NotFound());
            }
        }
예제 #2
0
        public void PostShippingDataTest()
        {
            var shipping = GenerateShipping();

            _cubiqManagerService.PostShippingData(shipping);
        }