Пример #1
0
        public bool UpdateUserPermission(UserPermission userPermission)
        {
            bool isSuccess = true;

            try
            {
                userPermissionRepository.Update(userPermission);
                this.SaveRecord();
                ServiceUtil <UserPermission> .WriteActionLog(userPermission.Id, ENUMOperation.UPDATE, userPermission);
            }
            catch (Exception ex)
            {
                isSuccess = false;
                logger.Error("Error in updating UserPermission", ex);
            }
            return(isSuccess);
        }