Exemplo n.º 1
0
        // Edit
        public ActionResult Edit(int id)
        {
            var tm = new TarefasModelo();

            return(View(tm.Where(t => t.Id == id).First()));
        }
Exemplo n.º 2
0
        public ActionResult Atrasadas()
        {
            var tm = new TarefasModelo();

            return(View(tm.Where(t => t.DataTarefa < DateTime.Today)));
        }
Exemplo n.º 3
0
        public ActionResult Entregar()
        {
            var tm = new TarefasModelo();

            return(View(tm.Where(t => t.DataTarefa == DateTime.Today)));
        }
Exemplo n.º 4
0
        // GET: Tarefas
        public ActionResult Index()
        {
            var tm = new TarefasModelo();

            return(View(tm));
        }