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;
        }
Beispiel #2
0
        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);
        }