How can I set the selectedvalue property of a SelectList after it was instantiated without a selectedvalue.
Controller
var _walkInnVM = new WalkInnVM
{
ProspectHandledEmpList = new SelectList(_db.Employees
.AsEnumerable()
.Where(e => e.Id == Int32.Parse(Session["LoggedUserId"].ToString()))
.ToList(), "Id", "Name")
};
HTML
@Html.DropDownListFor(m => m.ProspectHandledEmpID,
Model.ProspectHandledEmpList, "",
new { @class = "form-control select2 ", @id = "ddlProspectHandled" })