Example #1
0
        public IActionResult Index()
        {
            ToDoItemsManager mgr = new ToDoItemsManager(_connectionString);

            List <ToDoItem> items = mgr.GetIncompletedItems();

            return(View(items));
        }
Example #2
0
        public ActionResult Index()
        {
            ToDoItemsManager mgr = new ToDoItemsManager(Properties.Settings.Default.ConStr);

            IEnumerable <ToDoItem> items = mgr.GetIncompletedItems();

            return(View(items));
        }