public TodoItem ToggleComplete(TodoItem todoItem) { var command = new ToggelCompleteTodo { Input = todoItem, Persistor = this.Persistor }; command.Execute(); ViewModel.TodoItems[todoItem.Id] = command.Value; return(command.Value); }
public TodoItem ToggleComplete(TodoItem todoItem) { var command = new ToggelCompleteTodo { Input = todoItem, Persistor = this.Persistor }; command.Execute(); ViewModel.TodoItems[todoItem.Id] = command.Value; return command.Value; }