Ejemplo n.º 1
0
        public async Task <IActionResult> DeletPedido(string id, [FromServices] PedidoPresenter presenter)
        {
            await _mediator.PublishAsync(null).ConfigureAwait(false);

            return(presenter.ViewModel);
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> PostPedido(PedidoModel pedido, [FromServices] PedidoPresenter presenter)
        {
            await _mediator.PublishAsync(pedido).ConfigureAwait(false);

            return(presenter.ViewModel);
        }