public IEnumerable<TodoItem> ClearCompleted() { this.GetList(); var command = new RemoveCompletedTodos { Input = this.ViewModel.TodoItems, Persistor = this.Persistor }; command.Execute(); ViewModel.TodoItems = command.Value.ToList(); return command.Value; }
public IEnumerable <TodoItem> ClearCompleted() { this.GetList(); var command = new RemoveCompletedTodos { Input = this.ViewModel.TodoItems, Persistor = this.Persistor }; command.Execute(); ViewModel.TodoItems = command.Value.ToList(); return(command.Value); }