Map envelope DocResult and expose burned-state indicator
This commit is contained in:
@@ -137,7 +137,6 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
= false;
|
||||
#endif
|
||||
|
||||
[NotMapped]
|
||||
[Column("DOC_RESULT")]
|
||||
public byte[]
|
||||
#if nullable
|
||||
|
||||
@@ -3,6 +3,12 @@
|
||||
public interface IEnvelope
|
||||
{
|
||||
int? EnvelopeTypeId { get; set; }
|
||||
|
||||
byte[]
|
||||
#if nullable
|
||||
?
|
||||
#endif
|
||||
DocResult { get; }
|
||||
}
|
||||
|
||||
public static class EnvelopeExtensions
|
||||
@@ -16,5 +22,10 @@
|
||||
{
|
||||
return envelope.EnvelopeTypeId != 2;
|
||||
}
|
||||
|
||||
public static bool IsBurned(this IEnvelope envelope)
|
||||
{
|
||||
return envelope.DocResult != null;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user