Example #1
0
        public CoverValidation EnterOrder(CoverValidation order)
        {
            var enterOrderCommand = new EnterOrderCommand(
                order.Id,
                order.CodigoDane,
                new Guid().ToString()
                );

            _bus.SendCommand(enterOrderCommand);

            //If you need to validate if all went well.
            //Task<bool> taskResult  = (Task<bool>)_bus.SendCommand(enterOrderCommand);

            //_trakingRepository
            //You can also track your request in DB using the traking repository

            return(order);
        }
Example #2
0
 public IActionResult Post([FromBody] CoverValidation orderModel)
 {
     _orderService.EnterOrder(orderModel);
     return(Ok(orderModel));
 }
Example #3
0
 public CoverResponse CoverValidation(CoverValidation coverValidation)
 {
     return(null);
 }