init
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Ertekeles;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Ertekeles
|
||||
{
|
||||
public class ErtekelesResponseDto
|
||||
{
|
||||
[Description(DescriptionLookUp.OsztalyzatTipus)]
|
||||
public int? OsztalyzatTipus { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.Szazalek)]
|
||||
public int? Szazalek { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.Szoveg)]
|
||||
public string Szoveg { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesTipusId)]
|
||||
public int TipusId { get; set; }
|
||||
|
||||
public static implicit operator ErtekelesResponseDto(ErtekelesResponse model) => model != null ? new ErtekelesResponseDto
|
||||
{
|
||||
OsztalyzatTipus = model.OsztalyzatTipus,
|
||||
Szazalek = model.Szazalek,
|
||||
Szoveg = model.Szoveg,
|
||||
TipusId = model.TipusId
|
||||
} : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user