예제 #1
0
 public void SetBodyStyles(IEnumerable <BodyStyleModel> bodyStyles)
 {
     foreach (var bodystyle in bodyStyles)
     {
         BodyStyles.Add(new SelectListItem()
         {
             Value = bodystyle.BodyStyle,
             Text  = bodystyle.BodyStyle
         });
     }
 }
예제 #2
0
 public void SetStyles(IEnumerable <BodyStyle> bodyStyle)
 {
     foreach (var body in bodyStyle)
     {
         BodyStyles.Add(new SelectListItem()
         {
             Value = body.BodyStyleId.ToString(),
             Text  = body.Description
         });
     }
 }
예제 #3
0
 public void SetBodyStyles(IEnumerable <LookupValue> bodyStyles)
 {
     foreach (var bs in bodyStyles)
     {
         BodyStyles.Add(new SelectListItem()
         {
             Value = bs.Description.ToString(),
             Text  = bs.Description.ToString()
         });
     }
 }