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