public IActionResult Completed() { ToDoItemsManager mgr = new ToDoItemsManager(_connectionString); List <ToDoItem> items = mgr.GetCompleted(); return(View(items)); }
public ActionResult Completed() { ToDoItemsManager mgr = new ToDoItemsManager(Properties.Settings.Default.ConStr); IEnumerable <ToDoItem> items = mgr.GetCompleted(); return(View(items)); }