Removed ApiExplorerSettings attribute. Changed Body and Subject to nullable strings with init accessors and updated their documentation. Added AddedWhen and ChangedWhen timestamp properties to track template creation and modification dates. Cleaned up property formatting.
40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace EnvelopeGenerator.Application.Common.Dto
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public record EmailTemplateDto
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public int Id { get; init; }
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public required string Name { get; init; }
|
|
|
|
/// <summary>
|
|
/// Das Datum und die Uhrzeit, wann die Vorlage hinzugefügt wurde.
|
|
/// </summary>
|
|
public DateTime AddedWhen { get; init; }
|
|
|
|
/// <summary>
|
|
/// Der Inhalt (Body) der E-Mail-Vorlage. Kann null sein.
|
|
/// </summary>
|
|
public string? Body { get; init; }
|
|
|
|
/// <summary>
|
|
/// Der Betreff der E-Mail-Vorlage. Kann null sein.
|
|
/// </summary>
|
|
public string? Subject { get; init; }
|
|
|
|
/// <summary>
|
|
/// Das Datum und die Uhrzeit, wann die Vorlage zuletzt geändert wurde. Kann null sein.
|
|
/// </summary>
|
|
public DateTime? ChangedWhen { get; init; }
|
|
};
|
|
} |