init
This commit is contained in:
+38
@@ -0,0 +1,38 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user