public void SetModelType(IEnumerable <CarModel> model) { foreach (var modelType in model) { ModelType.Add(new SelectListItem() { Value = modelType.ModelID.ToString(), Text = modelType.Model }); } }
public void SetModelType(IEnumerable <CarModel> model) { foreach (var modelType in model) { ModelType.Add(new SelectListItem() { Value = modelType.ModelID.ToString(), Text = modelType.Model }); } }