public async Task <IActionResult> PutProduto(ProdutoModel produto, [FromServices] ProdutoPresenter presenter) { await _mediator.PublishAsync(produto).ConfigureAwait(false); return(presenter.ViewModel); }
public async Task <IActionResult> GetTudo(string id, [FromServices] ProdutoPresenter presenter) { await _mediator.PublishAsync(null).ConfigureAwait(false); return(presenter.ViewModel); }