MVC DropDownListFor
问题 I am new using MVC approach. How to using the DropDownListfor in the MVC? I need get the list from my master table and show the option into the Business Premise in the Business Profile object. This is my ViewModel public class SMEAppViewModel { public WP2PBusinessProfile BuisinessProfile { get; set; } public IEnumerable<WP2PMasterDropDownList> MasterList { get; set; } } In my controller, I already initialize the MasterList to the List var _MasterList = _context.WP2PMasterDropDownList.ToList()