try this
public static class DropDownList<t>
{
public static SelectList LoadItems(IList<t> collection, string value, string text)
{
return new SelectList(collection, value, text);
}
}
Call the method from the controller like Below.
ViewData["Executives"] =
DropDownList<executives>.LoadItems(
objExecutivesDbContext.Executives.ToList(), "ExecutiveId", "ExecutiveName ");
Call the viewData from the View like below
<div class="editor-field">
@Html.DropDownListFor(model => model.ExecutiveId, (IEnumerable<selectlistitem>) ViewData["Executives"], "--Select--")
Hope this helps