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); }
public IActionResult Post([FromBody] CoverValidation orderModel) { _orderService.EnterOrder(orderModel); return(Ok(orderModel)); }
public CoverResponse CoverValidation(CoverValidation coverValidation) { return(null); }