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)); }