public async Task <IActionResult> OnGetAsync(Guid idTarefa) { try { Tarefa = await _tarefaApiService.ConsultarAsync(Token, idTarefa); SelectRecursos = new SelectList(await _recursoProjetoApiService.ListarPorProjetoAsync(Token, Tarefa.IdProjeto), "Recurso.Id", "Recurso.Nome"); return(Page()); } catch (Exception ex) { ModelState.AddModelError(string.Empty, ex.Message); return(Page()); } }
public async Task <IActionResult> OnGetAsync(Guid idProjeto) { try { Lista = await _recursoProjetoApiService.ListarPorProjetoAsync(Token, idProjeto); ViewData["idProjeto"] = idProjeto; return(Page()); } catch (Exception ex) { ModelState.AddModelError(string.Empty, ex.Message); return(Page()); } }