In Controller Method, my code is below
ViewBag.CurrencyNameId = db.CurrencyNames;
In View code in Edit.cshtml is
@Html.DropDownListFor(model => model.CurrencyNameId, new SelectList(ViewBag.CurrencyNameId, "Id", "Name",Model.CurrencyNameId), "Select", new { @class = "form-control" })
It does not set initial value.