public IActionResult OnGet(Guid idTarefa)
        {
            Lista = _recursoTarefaAppService.ListarPorTarefa(idTarefa);

            ViewData["idTarefa"] = idTarefa;

            return(Page());
        }
Exemple #2
0
        public override async Task <ListarPorTarefaReply> ListarPorTarefa(BaseRequest request, ServerCallContext context)
        {
            Guid id = new Guid(request.Id);
            ListarPorTarefaReply result = new ListarPorTarefaReply();

            result.Lista.AddRange(_mapper.Map <IEnumerable <RecursoTarefaModel> >(_recursoTarefaAppService.ListarPorTarefa(id)));

            return(await Task.FromResult(result));
        }
 public IEnumerable <RecursoTarefaViewModel> GetByTarefa(Guid idTarefa)
 {
     return(_recursoTarefaAppService.ListarPorTarefa(idTarefa));
 }