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