public async Task <IActionResult> OnGetAsync(Guid idProjeto) { try { Projeto = await _projetoApiService.ConsultarAsync(Token, idProjeto); SelectRecursos = new SelectList(await _recursoApiService.ListarAsync(Token), "Id", "Nome"); return(Page()); } catch (Exception ex) { ModelState.AddModelError(string.Empty, ex.Message); return(Page()); } }
public async Task <IActionResult> OnGetAsync() { try { Lista = await _recursoApiService.ListarAsync(Token); return(Page()); } catch (Exception ex) { ModelState.AddModelError(string.Empty, ex.Message); return(Page()); } }