22 lines
580 B
C#
22 lines
580 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs.EnvelopeReceiverReadOnly
|
|
{
|
|
public record EnvelopeReceiverReadOnlyCreateDto(
|
|
DateTime DateValid)
|
|
{
|
|
[EmailAddress]
|
|
[Required]
|
|
public required string ReceiverMail { get; init; }
|
|
|
|
[JsonIgnore]
|
|
public long? EnvelopeId { get; set; } = null;
|
|
|
|
[JsonIgnore]
|
|
public string? AddedWho { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public DateTime AddedWhen { get; } = DateTime.Now;
|
|
};
|
|
} |