My table in db have fields : Id
,Organisation
,Info
.
I want make dropdowm list like that:
<select>
<option value='Id there'>'Organisation there'</option>...
I'm try to do it, using ViewBag:
ViewBag.Organisations = db.Organisations.ToList(); // get all fields from table using dbContext
and in View:
@Html.DropDownList('I don`t know what i shoud write here, please help')
How i can build dropdown list?