42 lines
1.5 KiB
C#
42 lines
1.5 KiB
C#
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);
|
|
}
|
|
}
|