public MovieInformationViewModel(IDialogService dialogService) { this.dialogService = dialogService; Tags = new ObservableCollection <TagViewModel>(); using (var repos = new RepositoryService()) { foreach (var category in repos.GetAllCategories()) { var tagModel = new TagViewModel(dialogService) { TagCategoryId = category.TagCategoryId, CategoryName = category.Name }; Tags.Add(tagModel); } } }