- Added XML documentation to the `Handle` method in `UpdateEmailTemplateCommandHandler`. - Improved readability in `ReadEmailTemplateQueryHandler` by storing the mapped response in a variable. - Updated properties in `ReadEmailTemplateResponse` to be mutable and renamed `Type` to `Name` with a type change from `int` to `string`. - Added data annotations in `EmailTemplate` for `AddedWhen` and introduced a new nullable `ChangedWhen` property. - Included necessary using directives for data annotations in `EmailTemplate.cs`.
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
namespace EnvelopeGenerator.Application.EmailTemplates.Queries.Read;
|
|
|
|
/// <summary>
|
|
/// Stellt die Antwort für eine Abfrage von E-Mail-Vorlagen bereit.
|
|
/// </summary>
|
|
public class ReadEmailTemplateResponse
|
|
{
|
|
/// <summary>
|
|
/// Die eindeutige Kennung der E-Mail-Vorlage.
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Name des Typs
|
|
/// </summary>
|
|
public required string Name { get; set; }
|
|
|
|
/// <summary>
|
|
/// Das Datum und die Uhrzeit, wann die Vorlage hinzugefügt wurde.
|
|
/// </summary>
|
|
public DateTime AddedWhen { get; set; }
|
|
|
|
/// <summary>
|
|
/// Der Inhalt (Body) der E-Mail-Vorlage. Kann null sein.
|
|
/// </summary>
|
|
public string? Body { get; set; }
|
|
|
|
/// <summary>
|
|
/// Der Betreff der E-Mail-Vorlage. Kann null sein.
|
|
/// </summary>
|
|
public string? Subject { get; set; }
|
|
|
|
/// <summary>
|
|
/// Das Datum und die Uhrzeit, wann die Vorlage zuletzt geändert wurde. Kann null sein.
|
|
/// </summary>
|
|
public DateTime? ChangedWhen { get; set; }
|
|
}
|