-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTrackBase.cs
28 lines (27 loc) · 1.12 KB
/
TrackBase.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Simply.Track
{
public abstract record TrackBase
{
public DateTimeOffset CreatedOn { get; protected set; }
public string? CreatedBy { get; protected set; }
public DateTimeOffset UpdatedOn { get; protected set; }
public string? UpdatedBy { get; protected set; }
public bool IsVoid { get; protected set; }
public DateTimeOffset? VoidOn { get; protected set; }
public string? VoidBy { get; protected set; }
public string? VoidMessage { get; protected set; }
public VoidReasons? VoidReason { get; protected set; }
protected TrackBase(DateTimeOffset createdOn, string createdBy, DateTimeOffset updatedOn, string updatedBy, bool isVoid, DateTimeOffset? voidOn, string? voidBy, string? voidMessage, VoidReasons? voidReason)
{
CreatedOn = createdOn;
CreatedBy = createdBy;
UpdatedOn = updatedOn;
UpdatedBy = updatedBy;
IsVoid = isVoid;
VoidOn = voidOn;
VoidBy = voidBy;
VoidMessage = voidMessage;
VoidReason = voidReason;
}
}
}