38 lines
1.3 KiB
C#
38 lines
1.3 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
|
{
|
|
public class OsztalyCsoportGondviseloResponseDto
|
|
{
|
|
[Required, Description(DescriptionLookUp.GondviseloId)]
|
|
public int Id { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.GondviseloNev)]
|
|
public string Nev { get; set; }
|
|
|
|
[Description(DescriptionLookUp.GondviseloRokonsagiFok)]
|
|
public string RokonsagiFok { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.GondviseloTelefonszam)]
|
|
public string Telefonszam { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.GondviseloEmail)]
|
|
public string Email { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.TorvenyesKepviselo)]
|
|
public bool IsTorvenyesKepviselo { get; set; }
|
|
|
|
public static implicit operator OsztalyCsoportGondviseloResponseDto(OsztalyCsoportGondviseloResponse model) => new OsztalyCsoportGondviseloResponseDto
|
|
{
|
|
Id = model.Id,
|
|
Nev = model.Nev,
|
|
RokonsagiFok = model.RokonsagiFok,
|
|
Telefonszam = model.Telefonszam,
|
|
Email = model.Email,
|
|
IsTorvenyesKepviselo = model.IsTorvenyesKepviselo
|
|
};
|
|
}
|
|
}
|