init
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Iskolaor;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Iskolaor
|
||||
{
|
||||
public class IskolaorResponseDto : IDtoDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.IdpEgyediAzonosito)]
|
||||
public Guid Uid { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Nev)]
|
||||
public string Nev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyId)]
|
||||
public int FeladatEllatasiHelyId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.FeladatEllatasiHelyNev)]
|
||||
public string FeladatEllatasiHelyNev { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.MunkahelyiEmailCim)]
|
||||
public string EmailCim { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.PublikusTelefonszam)]
|
||||
public string Telefonszam { get; set; }
|
||||
|
||||
public static implicit operator IskolaorResponseDto(IskolaorResponse model) => new IskolaorResponseDto
|
||||
{
|
||||
Uid = model.Uid,
|
||||
Nev = model.Nev,
|
||||
FeladatEllatasiHelyId = model.FeladatEllatasiHelyId,
|
||||
FeladatEllatasiHelyNev = model.FeladatEllatasiHelyNev,
|
||||
EmailCim = model.EmailCim,
|
||||
Telefonszam = model.Telefonszam
|
||||
};
|
||||
|
||||
public DocumentationExampleDto Example => new DocumentationExampleDto("GetIskolaorList", null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user