// GET: Tarefa

        public ActionResult Index()
        {
            List <Tarefa> tarefas = repositorio.ObterTodos();

            ViewBag.Tarefas = tarefas;
            return(View());
        }
        public ActionResult Cadastro()
        {
            TarefaRepositorio tarefaRepositorio = new TarefaRepositorio();
            List <Tarefa>     tarefas           = tarefaRepositorio.ObterTodos();

            ViewBag.Tarefas = tarefas;
            return(View());
        }