Exemple #1
0
        public async Task <IActionResult> IniciarTrabalho([FromServices] ITrabalhoService trabalhoService)
        {
            var lista = new TrabalhoListaIdsDto();

            lista.TrabalhoIds = (await trabalhoService.ObterTrabalhosRelatorios()).TrabalhoResumos.Select(x => x.Id);

            return(Ok(await trabalhoService.InciarTrabalhos(lista)));
        }
 public async Task <TrabalhoListaIdsDto> InciarTrabalhos(TrabalhoListaIdsDto trabalhoListaIdsDto)
 {
     return(await restService.PostInciarTrabalhosAsync(trabalhoListaIdsDto));
 }