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()); } }
public void PostShippingDataTest() { var shipping = GenerateShipping(); _cubiqManagerService.PostShippingData(shipping); }