Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult Create()
- {
- ViewBag.Types = new SelectList(db.Types.ToList(), "Id", "Name");
- return View();
- }
- @Html.DropDownListFor(model => model.Type, (SelectList)ViewBag.Types, new { @class = "form-control"})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement