ViewCode
public IList<Domain.Entity.Site> Sites { get; set; }
Controller (GetAll return a IList)
newViewModel.Sites = siteRepository.GetAll();
View
@Html.DropDownListFor ?
I need to display a dropdown with some properties of the list items. Id and Url are some properties of these items in the list.
It worked!
ViewModel
Controller
View