/// <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; } }
/// <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; } }
/// <summary> /// 删除控件 /// </summary> /// <returns></returns> public virtual bool DeletePermissionDomain(PermissionDomain permissionDomain) { if (Delete(permissionDomain.SecPermissionEntity)) { WebCaching.PermissionCaching = null; return true; } else { return false; } }