Пример #1
0
        public async Task <IActionResult> Index()
        {
            var todoItems = await dbctx.GetIncompletedItemsAsync();

            var model = new ToDoViewModel();

            model.Items = todoItems;

            return(View(model));
        }