public ItemCategoryCount BuildCount() { ItemCategoryCount count = new ItemCategoryCount(_name, _id, 0); return count; }
public ItemNodeModel(ItemCategoryCount itemCategory, bool hasChildren = false) : this(itemCategory.Name, itemCategory.ItemCategoryId, hasChildren) { if (itemCategory == null) throw new ArgumentNullException("itemCategory"); }