diff --git a/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs b/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs index 7331d1b7..029d621a 100644 --- a/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs +++ b/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs @@ -74,6 +74,11 @@ public record EnvelopeDto /// public int? EnvelopeTypeId { get; set; } + /// + /// + /// + public bool ReadOnly => EnvelopeTypeId == 2; + /// /// /// diff --git a/EnvelopeGenerator.Domain/Entities/Envelope.cs b/EnvelopeGenerator.Domain/Entities/Envelope.cs index 94e3b6c1..741a3b93 100644 --- a/EnvelopeGenerator.Domain/Entities/Envelope.cs +++ b/EnvelopeGenerator.Domain/Entities/Envelope.cs @@ -108,10 +108,6 @@ public class Envelope [Column("ENVELOPE_TYPE")] public int? EnvelopeTypeId { get; set; } - [JsonIgnore] - [NotMapped] - public bool ReadOnly => EnvelopeTypeId == 2; - [Column("CERTIFICATION_TYPE")] public int? CertificationType { get; set; }