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