public ActionResult ModalWindow(Module mdl) { if (mdl is Module) { db.Modules.Add(mdl); db.SaveChanges(); } ViewBag.DDListModule = new SelectList(db.Modules, "Id", "Name"); return PartialView("DDListModule"); }
public ActionResult DDListModule(Module mdl) { ViewBag.DDListModule = new SelectList(db.Modules, "Id", "Name",mdl?.Id); return PartialView(); }