Beispiel #1
0
        public async Task <IActionResult> RejeitaPedido(UpdatePedidoRequest updatePedido)
        {
            var command = new UpdatePedidoCommand(updatePedido, 3);
            var result  = await Mediator.Send(command);

            return(await ResponseBase(result));
        }
Beispiel #2
0
 public UpdatePedidoCommand(UpdatePedidoRequest updateRequest, int action)
 {
     this.UpdateRequest        = updateRequest;
     this.UpdateRequest.Action = action;
 }