Exemple #1
0
        public IActionResult Listar()
        {
            List <TarefaViewModel> tarefas = TarefaRepository.Listar();

            return(PartialView("_Listar", tarefas));
        }
Exemple #2
0
        public IActionResult Index()
        {
            List <TarefaViewModel> tarefas = TarefaRepository.Listar();

            return(View(tarefas));
        }