예제 #1
0
        /// <summary>
        /// 编辑控件
        /// </summary>
        /// <returns></returns>
        public virtual bool UpdatePermissionDomain(PermissionDomain permissionDomain)
        {
            permissionDomain.SecPermissionEntity.LastModifiedTime = DateTime.Now;

            if (Update(permissionDomain.SecPermissionEntity))
            {
                WebCaching.PermissionCaching = null;
                return true;
            }
            else
            {
                return false;
            }
        }
예제 #2
0
        /// <summary>
        /// 增加控件
        /// </summary>
        /// <returns></returns>
        public virtual bool InsertPermissionDomain(PermissionDomain permissionDomain)
        {
            permissionDomain.SecPermissionEntity.PermissionId = Guid.NewGuid().ToString();
            permissionDomain.SecPermissionEntity.LastModifiedTime = DateTime.Now;

            if (Insert(permissionDomain.SecPermissionEntity))
            {
                WebCaching.PermissionCaching = null;
                return true;
            }
            else
            {
                return false;
            }
        }
예제 #3
0
        /// <summary>
        /// 删除控件
        /// </summary>
        /// <returns></returns>
        public virtual bool DeletePermissionDomain(PermissionDomain permissionDomain)
        {

            if (Delete(permissionDomain.SecPermissionEntity))
            {
                WebCaching.PermissionCaching = null;
                return true;
            }
            else
            {

                return false;
            }
        }