public IActionResult OnGet(Guid idTarefa) { Lista = _impedimentoTarefaAppService.ListarPorTarefa(idTarefa); ViewData["idTarefa"] = idTarefa; return(Page()); }
public IEnumerable <ImpedimentoTarefaViewModel> GetByTarefa(Guid idTarefa) { return(_impedimentoTarefaAppService.ListarPorTarefa(idTarefa)); }
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 <ImpedimentoTarefaModel> >(_impedimentoTarefaAppService.ListarPorTarefa(id))); return(await Task.FromResult(result)); }