Im trying to get a drop-down list to work for users who are being graded. Each user can have multiple gradings. So when i create a new grade i want a drop-down to specify
In Create get action you are not setting ViewBag.GradingId with the SelectList which is causing error in View:
Create
ViewBag.GradingId
public ActionResult Create() { ViewBag.GradingId = new SelectList(db.Gradings, "GradingId", "CodeName"); return View(); }