public async Task <bool> Executar(FiltroRelatorioNotificacao filtro) { var usuarioLogado = await mediator.Send(new ObterUsuarioLogadoQuery()); filtro.UsuarioNome = usuarioLogado.Nome; filtro.UsuarioRf = usuarioLogado.CodigoRf; return(await mediator.Send(new GerarRelatorioCommand(TipoRelatorio.Notificacoes, filtro, usuarioLogado))); }
public async Task <IActionResult> Notificacoes([FromBody] FiltroRelatorioNotificacao filtro, [FromServices] IRelatorioNotificacaoUseCase useCase) { return(Ok(await useCase.Executar(filtro))); }