public void MakeIdsForMenuParts() { int i = 0; foreach (var item in this.MenuParts) { item.Id = i; i++; } }