init
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Ellenorzo.Domain.VN.Ora.TanitasiOra;
|
||||
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
||||
using Kreta.Ellenorzo.Dto.VN.Utility;
|
||||
|
||||
namespace Kreta.Ellenorzo.Dto.VN.Ora.TanitasiOra
|
||||
{
|
||||
public class TanitasiOraResponseDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.TanoraKezdetenekIdopontja)]
|
||||
public DateTime KezdoDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.TanoraVegenekIdopontja)]
|
||||
public DateTime VegDatum { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.EntitasOraszamaAzAdottNapon + "<br>" + DescriptionLookUp.NapirendiOraEsetenNull)]
|
||||
public byte? Oraszam { get; set; }
|
||||
|
||||
public static implicit operator TanitasiOraResponseDto(TanitasiOraResponse model) => model == null ? null : new TanitasiOraResponseDto
|
||||
{
|
||||
KezdoDatum = model.KezdoDatum.ToIso8601Utc(),
|
||||
VegDatum = model.VegDatum.ToIso8601Utc(),
|
||||
Oraszam = model.Oraszam
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user