kreta/Kreta.WebApi/Ellenorzo/Kreta.Ellenorzo.Dto/VN/Felhasznalo/Gondviselo/GondviseloAdatokResponseDto.cs
2024-03-13 00:33:46 +01:00

54 lines
2.1 KiB
C#

using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Ellenorzo.Domain.VN.Felhasznalo.Gondviselo;
using Kreta.Ellenorzo.Dto.VN.Documentation;
using Kreta.Ellenorzo.Dto.VN.Interfaces;
namespace Kreta.Ellenorzo.Dto.VN.Felhasznalo.Gondviselo
{
public class GondviseloAdatokResponseDto : IDtoDocumentation
{
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
public string Elotag { get; set; }
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
public string Vezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
public string SzuletesiVezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznalonakANeve)]
public string Utonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiNeve)]
public string SzuletesiUtonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
public string AnyjaVezeteknev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloAnyjaNeve)]
public string AnyjaUtonev { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiHelye)]
public string SzuletesiHely { get; set; }
[Required, Description(DescriptionLookUp.FelhasznaloSzuletesiDatuma)]
public DateTime? SzuletesiDatum { get; set; }
public DocumentationExampleDto Example => new DocumentationExampleDto("GetGondviseloAdatlap", null);
public static implicit operator GondviseloAdatokResponseDto(GondviseloAdatokResponse model) => new GondviseloAdatokResponseDto
{
Elotag = model.Elotag,
Vezeteknev = model.Vezeteknev,
Utonev = model.Utonev,
SzuletesiVezeteknev = model.SzuletesiVezeteknev,
SzuletesiUtonev = model.SzuletesiUtonev,
AnyjaVezeteknev = model.AnyjaVezeteknev,
AnyjaUtonev = model.AnyjaUtonev,
SzuletesiHely = model.SzuletesiHely,
SzuletesiDatum = model.SzuletesiDatum
};
}
}