コード例 #1
0
        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));
        }
コード例 #2
0
 public IEnumerable <RecursoTarefaViewModel> Get()
 {
     return(_recursoTarefaAppService.Listar());
 }
コード例 #3
0
 public IEnumerable <RecursoTarefaViewModel> Get(bool getDependencies = false)
 {
     return(_recursoTarefaAppService.Listar(getDependencies));
 }