示例#1
0
 public void SetMakeItems(IEnumerable <CarMake> makes)
 {
     foreach (var make in makes)
     {
         MakeItems.Add(new SelectListItem()
         {
             Value = make.Name,
             Text  = make.Name
         });
     }
 }
示例#2
0
 public void SetMakeItems(IEnumerable <Make> makes)
 {
     foreach (var make in makes)
     {
         MakeItems.Add(new SelectListItem()
         {
             Value = make.MakeId.ToString(),
             Text  = make.MakeName
         });
     }
 }
示例#3
0
 public void SetMakeItems(IEnumerable <Make> makeItems)
 {
     foreach (var item in makeItems)
     {
         MakeItems.Add(new SelectListItem()
         {
             Value = item.MakeName,
             Text  = item.MakeName
         });
     }
 }