kreta/Kreta.WebApi/Naplo/Kreta.Naplo.Dto/V3/Ora/FeljegyzesResponseDto.cs
2024-03-13 00:33:46 +01:00

24 lines
646 B
C#

using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using Kreta.Naplo.Domain.V3.Ora;
using Kreta.Naplo.Dto.V3.Documentation;
namespace Kreta.Naplo.Dto.V3.Ora
{
public class FeljegyzesResponseDto
{
[Required, Description(DescriptionLookUp.FeljegyzesId)]
public int Id { get; set; }
[Required, Description(DescriptionLookUp.FeljegyzesTipus)]
public int Tipus { get; set; }
public static implicit operator FeljegyzesResponseDto(FeljegyzesResponse model) => new FeljegyzesResponseDto
{
Id = model.Id,
Tipus = model.Tipus
};
}
}