ViewCodeDropDownListFor 3
public IList<Domain.Entity.Site> Sites { get; set; }
私はいくつかとドロップダウンを表示する必要がコントローラ(IListのを返すGETALL)
newViewModel.Sites = siteRepository.GetAll();
ビュー
@Html.DropDownListFor ?
リスト項目のプロパティ。 IdとUrlは、リスト内のこれらの項目のいくつかのプロパティです。