示例#1
0
        public ActionResult Complete(int?id, bool complete)
        {
            var toDoViewModel = new ToDoCollectionViewModel();

            if (id != null)
            {
                _toDoService.CompleteToDo(id.Value, complete);
            }

            toDoViewModel.ToDoCollection = _toDoService.GetAll();

            return(View("Index", toDoViewModel));
        }