create CreateHistoryCommand

This commit is contained in:
2025-08-25 17:22:26 +02:00
parent 99083a68aa
commit 78100ef24f
2 changed files with 57 additions and 4 deletions

View File

@@ -0,0 +1,39 @@
using EnvelopeGenerator.Domain;
namespace EnvelopeGenerator.Application.Histories.Commands;
/// <summary>
///
/// </summary>
public record CreateHistoryCommand
{
/// <summary>
///
/// </summary>
public int EnvelopeId { get; set; }
/// <summary>
///
/// </summary>
public string UserReference { get; set; } = null!;
/// <summary>
///
/// </summary>
public Constants.EnvelopeStatus Status { get; set; }
/// <summary>
///
/// </summary>
public DateTime AddedWhen { get; } = DateTime.Now;
/// <summary>
///
/// </summary>
public DateTime ActionDate => AddedWhen;
/// <summary>
///
/// </summary>
public string? Comment { get; set; }
}