Ejemplo n.º 1
0
        public IActionResult SaveNewCategory(string name)
        {
            ToDoItemsManager mgr = new ToDoItemsManager(_connectionString);

            mgr.AddCategory(name);
            return(Redirect("/home/categories"));
        }
Ejemplo n.º 2
0
        public ActionResult SaveNewCategory(string name)
        {
            ToDoItemsManager mgr = new ToDoItemsManager(Properties.Settings.Default.ConStr);

            mgr.AddCategory(name);
            return(Redirect("/home/categories"));
        }