MVC初心者が再びここに!
コントローラーに 2 つのリストがあります。
IList<Cars> allCars = _repository.GetAll<Cars>();
IList<Bikes> allBikes = _repository.GetAll<Bikes>();
Cars { Id, Name }
Bikes { Id, Name }
だから、私はこのクラスのリストを持っていて、次のような自転車と車のoptgroupを含む選択ドロップダウンリストを表示したい: http://jsfiddle.net/xNEm9/
ありがとう!