21 lines
610 B
C#
21 lines
610 B
C#
using System.Globalization;
|
|
|
|
namespace InnovEnergy.API.DataModel;
|
|
|
|
public record Edit
|
|
{
|
|
private static readonly String DateTimePattern = CultureInfo.CurrentCulture.DateTimeFormat.UniversalSortableDateTimePattern;
|
|
|
|
public String Action { get; set; } = "";
|
|
public String User { get; set; } = "";
|
|
public String TimeStamp { get; set; } = "";
|
|
public Int32 Version { get; set; }
|
|
|
|
public Edit(String action, String user, Int32 version)
|
|
{
|
|
Action = action;
|
|
User = user;
|
|
Version = version;
|
|
TimeStamp = DateTime.Now.ToString(DateTimePattern);
|
|
}
|
|
} |