var m = db.Example.Where(r => r.ID == id).Select(p=>p.FirstName);
ViewBag.name = m;
@Html.EditorFor(model => model.NameId,null, new { htmlAttributes = new { @class = "form-control", @Value = ViewBag.name} })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)