public IActionResult NewItem() { ToDoItemsManager mgr = new ToDoItemsManager(_connectionString); return(View(mgr.GetCategories())); }
public ActionResult NewItem() { ToDoItemsManager mgr = new ToDoItemsManager(Properties.Settings.Default.ConStr); return(View(mgr.GetCategories())); }