Пример #1
0
 public SubcategoryObject(Guid id, string name)
 {
     Id        = new SubcategoryId(id);
     this.name = name;
 }
Пример #2
0
 public bool HasSubcategory(SubcategoryId id) => subcategories.Any(x => x.Is(id));
Пример #3
0
 public bool Is(SubcategoryId id) => Id == id;