Example #1
0
        public static IEnumerable<Todo> AllesSpeichern(System.Collections.ObjectModel.ObservableCollection<Todo> todos)
        {
            var savingTodos = todos.Where(t => t.LokalGeändert);

            var todoService = new TodoService.TodoServiceClient();
            todoService.Speichern(savingTodos.Select(t => t.AsDto()).ToArray());

            return NeuLaden(todos);
        }