public Category AddCategory() { var category = new Category { Id = identifierService.GetNewCategoryId() }; category.PropertyChanged += OnCategoryPropertyChanged; categories.Add(category); return(category); }