Exemplo n.º 1
0
        public ActionResult Test()
        {
            Modules.Cortex.Cortex cortex = new Modules.Cortex.Cortex(Request);
            ViewData["Data"] = cortex.List();

            return(View("~/Views/Cortex/Test.cshtml"));
        }
Exemplo n.º 2
0
        public ActionResult Save(Task model)
        {
            Modules.Cortex.Cortex cortex = new Modules.Cortex.Cortex(Request);
            cortex.Save(model);

            return(RedirectToRoute("Cortex", new { @action = "Index" }));
        }
Exemplo n.º 3
0
        public ActionResult Delete(int id)
        {
            Modules.Cortex.Cortex cortex = new Modules.Cortex.Cortex();
            cortex.Delete(id);

            return(RedirectToRoute("Cortex", new { @action = "Index" }));
        }