Ejemplo n.º 1
0
        public JsonResult DelUserPermissionGroup(int userId, int newUpgId)
        {
            var pg = _userPermissionGroupRepository.FindByUserId(userId);

            if (pg.First().ParentUserPermissionGroupId == newUpgId)
            {
                return(null);
            }
            return(Json(_userPermissionGroupService.DelUserPermissionGroup(userId, newUpgId), JsonRequestBehavior.AllowGet));
        }