From 200258ff736773f66b5e63e5c00bb723c793b660 Mon Sep 17 00:00:00 2001 From: TekH Date: Wed, 11 Mar 2026 09:43:22 +0100 Subject: [PATCH] Update EnvelopeDto.ReadOnly to use IsReadAndConfirm() Refactored the ReadOnly property in EnvelopeDto to use the IsReadAndConfirm() extension method instead of directly checking EnvelopeTypeId. Marked the property as [Obsolete] and advised using EnvelopeExtensions.IsReadAndConfirm. --- EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs b/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs index 01c24251..1222c343 100644 --- a/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs +++ b/EnvelopeGenerator.Application/Common/Dto/EnvelopeDto.cs @@ -75,10 +75,12 @@ public record EnvelopeDto : IEnvelope /// public int? EnvelopeTypeId { get; set; } + // TODO: use ReadAndConfirm property name /// /// /// - public bool ReadOnly => EnvelopeTypeId == 2; + [Obsolete("Use EnvelopeExtensions.IsReadAndConfirm extension metot instead.")] + public bool ReadOnly => this.IsReadAndConfirm(); /// ///