public async Task <IActionResult> Obter(string ueId, [FromBody] string[] turmas, [FromServices] IObterComponentesCurricularesPorTurmaECodigoUeUseCase obterComponentesCurricularesPorTurmaECodigoUeUseCase) { var filtro = new FiltroComponentesCurricularesPorTurmaECodigoUeDto { CodigoUe = ueId, CodigosDeTurmas = turmas }; return(Ok(await obterComponentesCurricularesPorTurmaECodigoUeUseCase.Executar(filtro))); }
public async Task <IEnumerable <ComponenteCurricularDto> > Executar(FiltroComponentesCurricularesPorTurmaECodigoUeDto filtroComponentesCurricularesPorTurmaECodigoUeDto) { var result = await mediator.Send(new ObterComponentesCurricularesEOLPorTurmaECodigoUeQuery(filtroComponentesCurricularesPorTurmaECodigoUeDto.CodigosDeTurmas, filtroComponentesCurricularesPorTurmaECodigoUeDto.CodigoUe)); return(result); }