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.
This commit is contained in:
2026-03-11 09:43:22 +01:00
parent fa73d939b5
commit 200258ff73

View File

@@ -75,10 +75,12 @@ public record EnvelopeDto : IEnvelope
/// </summary> /// </summary>
public int? EnvelopeTypeId { get; set; } public int? EnvelopeTypeId { get; set; }
// TODO: use ReadAndConfirm property name
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
public bool ReadOnly => EnvelopeTypeId == 2; [Obsolete("Use EnvelopeExtensions.IsReadAndConfirm extension metot instead.")]
public bool ReadOnly => this.IsReadAndConfirm();
/// <summary> /// <summary>
/// ///