public ConfigurationViewModel(IDataService dataService) { this.DataService = dataService; this.Schemas = new ObservableCollection<ConfigurationSchemaViewModel>(); this.Langs = new ObservableCollection<LangViewModel>(); DbSet<PrfSchema> schemas = dataService.GetDbSet<PrfSchema>(); foreach (PrfSchema schema in schemas) { this.Schemas.Add(new ConfigurationSchemaViewModel(schema )); } this.AddLangCommand = new DelegateCommand(AddLangExecute); this.LoadLangs(); }