public ActionResult Edit([Bind(Include = "id,title")] IdentityRoles userGroup) { if (ModelState.IsValid) { repository.Update(userGroup); return(RedirectToAction("Index")); } return(View(userGroup)); }
public static DataActionState Update(UserGroupsInfo userGroupsInfo) { DataActionState unknown = DataActionState.Unknown; if (!RolePermissions.AccessCheck(OperateCode.UserGroupManage)) { throw new CustomException(PEExceptionType.ExceedAuthority); } if (dal.Update(userGroupsInfo)) { unknown = DataActionState.Successed; } return(unknown); }