Exemplo n.º 1
0
        public async Task <IEnumerable <TarefaViewModel> > BuscarTodos()
        {
            var tarefas = new List <TarefaViewModel>();

            try
            {
                tarefas = _mapper.Map <List <TarefaViewModel> >(await _tarefaService.BuscarTodos());
            }
            catch (Exception ex)
            {
                //TODO: Log
            }

            return(tarefas);
        }