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