public ActionResult <RecursoTarefaViewModel> Get(Guid id) { RecursoTarefaViewModel recursoTarefa = _recursoTarefaAppService.Consultar(id); if (recursoTarefa == null) { return(NotFound()); } return(Ok(recursoTarefa)); }
public IActionResult OnGet(Guid id) { RecursoTarefa = _recursoTarefaAppService.Consultar(id); SelectRecursos = new SelectList(_recursoProjetoAppService.ListarPorProjeto(RecursoTarefa.Tarefa.IdProjeto), "Recurso.Id", "Recurso.Nome"); return(Page()); }
public override async Task <RecursoTarefaModel> Consultar(BaseRequest request, ServerCallContext context) { Guid id = new Guid(request.Id); RecursoTarefaModel result = _mapper.Map <RecursoTarefaModel>(_recursoTarefaAppService.Consultar(id)); return(await Task.FromResult(result)); }
public IActionResult OnGet(Guid id) { RecursoTarefa = _recursoTarefaAppService.Consultar(id); return(Page()); }