public async Task <IActionResult> DeletPedido(string id, [FromServices] PedidoPresenter presenter) { await _mediator.PublishAsync(null).ConfigureAwait(false); return(presenter.ViewModel); }
public async Task <IActionResult> PostPedido(PedidoModel pedido, [FromServices] PedidoPresenter presenter) { await _mediator.PublishAsync(pedido).ConfigureAwait(false); return(presenter.ViewModel); }