Пример #1
0
        public ActionResult Edit([Bind(Include = "id,title")] IdentityRoles userGroup)
        {
            if (ModelState.IsValid)
            {
                repository.Update(userGroup);

                return(RedirectToAction("Index"));
            }
            return(View(userGroup));
        }
Пример #2
0
        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);
        }