22 lines
676 B
C#
22 lines
676 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.Csatolmany;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.Csatolmany
|
|
{
|
|
public class CsatolmanyResponseDto
|
|
{
|
|
[Required, Description(DescriptionLookUp.CsatolmanyId)]
|
|
public int Id { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.CsatolmanyNev)]
|
|
public string Nev { get; set; }
|
|
|
|
public static implicit operator CsatolmanyResponseDto(CsatolmanyResponse model) => model == null ? null : new CsatolmanyResponseDto
|
|
{
|
|
Id = model.Id,
|
|
Nev = model.Nev
|
|
};
|
|
}
|
|
}
|