예제 #1
0
        // Edit
        public ActionResult Edit(int id)
        {
            var tm = new TarefasModelo();

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

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

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

            return(View(tm));
        }