39 lines
903 B
C#
39 lines
903 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace EnvelopeGenerator.Application.DTOs.EnvelopeReceiverReadOnly;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
/// <param name="DateValid"></param>
|
|
[ApiExplorerSettings(IgnoreApi = true)]
|
|
public record EnvelopeReceiverReadOnlyCreateDto(
|
|
DateTime DateValid)
|
|
{
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[EmailAddress]
|
|
[Required]
|
|
public required string ReceiverMail { get; init; }
|
|
|
|
/// <summary>
|
|
/// Default value is null
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public long? EnvelopeId { get; set; } = null;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public string? AddedWho { get; set; }
|
|
|
|
/// <summary>
|
|
/// Default value is DateTime.Now
|
|
/// </summary>
|
|
[JsonIgnore]
|
|
public DateTime AddedWhen { get; } = DateTime.Now;
|
|
}; |