예제 #1
0
        public override async Task <ListarReply> Listar(Empty request, ServerCallContext context)
        {
            ListarReply result = new ListarReply();

            result.Lista.AddRange(_mapper.Map <IEnumerable <TarefaModel> >(_tarefaAppService.Listar()));

            return(await Task.FromResult(result));
        }
예제 #2
0
 public IEnumerable <TarefaViewModel> Get()
 {
     return(_tarefaAppService.Listar());
 }
예제 #3
0
        public IActionResult OnGet()
        {
            Lista = _tarefaAppService.Listar();

            return(Page());
        }
예제 #4
0
 public IEnumerable <TarefaViewModel> Get(bool getDependencies = false)
 {
     return(_tarefaAppService.Listar(getDependencies));
 }