public override async Task <ListarReply> Listar(Empty request, ServerCallContext context) { ListarReply result = new ListarReply(); result.Lista.AddRange(_mapper.Map <IEnumerable <RecursoTarefaModel> >(_recursoTarefaAppService.Listar())); return(await Task.FromResult(result)); }
public IEnumerable <RecursoTarefaViewModel> Get() { return(_recursoTarefaAppService.Listar()); }
public IEnumerable <RecursoTarefaViewModel> Get(bool getDependencies = false) { return(_recursoTarefaAppService.Listar(getDependencies)); }