Example #1
0
        public async Task <IActionResult> OnGetAsync(Guid idTarefa)
        {
            try
            {
                Tarefa = await _tarefaApiService.ConsultarAsync(Token, idTarefa);

                SelectImpedimentos = new SelectList(await _impedimentoApiService.ListarAsync(Token), "Id", "Nome");

                return(Page());
            }
            catch (Exception ex)
            {
                ModelState.AddModelError(string.Empty, ex.Message);
                return(Page());
            }
        }
Example #2
0
        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());
            }
        }
Example #3
0
        public async Task <IActionResult> OnGetAsync(Guid id)
        {
            try
            {
                Tarefa = await _tarefaApiService.ConsultarAsync(Token, id);

                return(Page());
            }
            catch (Exception ex)
            {
                ModelState.AddModelError(string.Empty, ex.Message);
                return(Page());
            }
        }
Example #4
0
        public async Task <IActionResult> OnGetAsync(Guid id)
        {
            try
            {
                Tarefa = await _tarefaApiService.ConsultarAsync(Token, id);

                SelectProjetos    = new SelectList(await _projetoApiService.ListarAsync(Token), "Id", "Nome");
                SelectSistemas    = new SelectList(await _sistemaApiService.ListarAsync(Token), "Id", "Descricao");
                SelectWorkflows   = new SelectList(await _workflowApiService.ListarAsync(Token), "Id", "Nome");
                SelectTipoTarefas = new SelectList(await _tipoTarefaApiService.ListarAsync(Token), "Id", "Nome");

                return(Page());
            }
            catch (Exception ex)
            {
                ModelState.AddModelError(string.Empty, ex.Message);
                return(Page());
            }
        }