1234567891011121314151617181920 |
- using Aip.Api.Service.Aip.Models;
- using Aip.Api.Service.Entities;
- namespace Aip.Api.Service.Aip.Helpers;
- public static class CompareHelper
- {
- public static bool IsChanged(this TbAipLabel aipLabel, AipLabel label)
- {
- return (aipLabel.LabelName != label.Name) || (aipLabel.LabelDesc != label.Description);
- }
- public static bool IsChanged(this TbAipPolicy aipPolicy, AipLabel label)
- {
- return (aipPolicy.PolicyName != label.Name) || (aipPolicy.PolicyDesc != label.Description);
- }
- public static bool IsChanged(this TbAipProtection aipProtection, AipTemplate label)
- {
- return (aipProtection.ProtectionName != label.Name) || (aipProtection.ProtectionDesc != label.Description);
- }
- }
|