public ActionResult Edit([Bind(Include = "ID,PageUrl,PageName,Sys_FuncID")] Sys_Page sys_Page)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sys_Page).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sys_Page));
 }
Beispiel #2
0
 public ActionResult Edit([Bind(Include = "ID,PermissionName,Description")] Sys_Permission sys_Permission)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sys_Permission).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sys_Permission));
 }
 public ActionResult Edit([Bind(Include = "ID,LoginName,Password,RealName,Gender,Mobile,Email,Birthday")] Sys_User sys_User)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sys_User).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sys_User));
 }
 public ActionResult Edit([Bind(Include = "ID,Sys_PageID,ParentID,FuncName,Description,IsAsc,IsDelete")] Sys_Func sys_Func)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sys_Func).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sys_Func));
 }
Beispiel #5
0
 public ActionResult Edit([Bind(Include = "ID,ControlName,PageUrl,PageControlID,Description")] Sys_PageControl sys_PageControl)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sys_PageControl).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(sys_PageControl));
 }