コード例 #1
0
        public override async Task <ListarReply> Listar(Empty request, ServerCallContext context)
        {
            ListarReply result = new ListarReply();

            result.Lista.AddRange(_mapper.Map <IEnumerable <TipoTarefaModel> >(_tipoTarefaAppService.Listar()));

            return(await Task.FromResult(result));
        }
コード例 #2
0
        public async Task <IEnumerable <WorkflowViewModel> > ListarAsync()
        {
            ListarReply response = await _client.ListarAsync(new Empty());

            return(_mapper.Map <IEnumerable <WorkflowViewModel> >(response.Lista));
        }