Introduced the IsReadAndSign method to IEnvelope extensions, which returns true when EnvelopeTypeId is not 2. This allows clear differentiation between "Read and Sign" and "Read and Confirm" envelope types.
20 lines
467 B
C#
20 lines
467 B
C#
namespace EnvelopeGenerator.Domain.Interfaces
|
|
{
|
|
public interface IEnvelope
|
|
{
|
|
int? EnvelopeTypeId { get; set; }
|
|
}
|
|
|
|
public static class EnvelopeExtensions
|
|
{
|
|
public static bool IsReadAndConfirm(this IEnvelope envelope)
|
|
{
|
|
return envelope.EnvelopeTypeId == 2;
|
|
}
|
|
|
|
public static bool IsReadAndSign(this IEnvelope envelope)
|
|
{
|
|
return envelope.EnvelopeTypeId != 2;
|
|
}
|
|
}
|
|
} |