CopyPastehas never been so tasty!

Enum

by anonymous

  • 0
  • 0
43 views
1
2
3
4
5
6
7
8
9
10
11
 
 public enum Site_CategoryType
    {
        kurumsal = 1,
        urunler = 2,
        haberler = 3,
        satis = 5 
    } 
TopMenuList.Add(categoryList.Where(a => a.categoryTypeId == (int)Site_CategoryType.kurumsal).FirstOrDefault());
TopMenuList.Add(categoryList.Where(a => a.categoryTypeId == (int)Site_CategoryType.urunler).FirstOrDefault());