示例#1
0
        public IActionResult SaveNewCategory(string name)
        {
            ToDoItemsManager mgr = new ToDoItemsManager(_connectionString);

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

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