Exemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "AId,AccessName")] TB_UserAccess tB_UserAccess)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tB_UserAccess).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(tB_UserAccess));
 }
Exemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "MId,MenuName,AId")] TB_ShowMenu tB_ShowMenu)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tB_ShowMenu).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.AId = new SelectList(db.TB_UserAccess, "AId", "AccessName", tB_ShowMenu.AId);
     return(View(tB_ShowMenu));
 }
Exemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "UId,UserFace,LId")] TB_UserFace tB_UserFace)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tB_UserFace).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.LId = new SelectList(db.TB_LoginOn, "LId", "LoginNo", tB_UserFace.LId);
     return(View(tB_UserFace));
 }
Exemplo n.º 4
0
 public ActionResult Edit([Bind(Include = "LId,LoginNo,LoginName,LoginPwd,LPhone,ComputerNo")] TB_LoginOn loginOn)
 {
     if (ModelState.IsValid)
     {
         using (SubBugEntities db = new SubBugEntities())
         {
             db.Entry(loginOn).State = EntityState.Modified;
             db.SaveChanges();
             return(RedirectToAction("Index"));
         }
     }
     return(View(loginOn));
 }