Skip to content

Instantly share code, notes, and snippets.

for (int i = 1; i <= 2; i++) {
Category c = new Category();
c.ID = i;
c.IsDefault = i == 1;
c.Name = "Parent" + i.ToString();
c.ParentID = 0;
c.Image = new CategoryImage("thumb", "full");
int subCategoryID = 10 * i;