コード例 #1
0
 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");
 }
コード例 #2
0
 public ActionResult DDListModule(Module mdl)
 {
     ViewBag.DDListModule = new SelectList(db.Modules, "Id", "Name",mdl?.Id);
     return PartialView();
 }