using System.ComponentModel; using System.ComponentModel.DataAnnotations; using Kreta.Naplo.Domain.V3.Ertekeles; using Kreta.Naplo.Dto.V3.Documentation; namespace Kreta.Naplo.Dto.V3.Tanulo { public class TanuloMentessegResponseDto { [Required, Description(DescriptionLookUp.ErtekelesAloliFelmentes)] public bool ErtekelesAloliFelmentes { get; set; } [Required, Description(DescriptionLookUp.TanoraLatogatasaAloliFelmentes)] public bool TanoraLatogatasaAloliFelmentes { get; set; } [Required, Description(DescriptionLookUp.SzovegesenErtekelheto)] public bool SzovegesenErtekelheto { get; set; } [Required, Description(DescriptionLookUp.FelmentesOka)] public string FelmentesOka { get; set; } public static implicit operator TanuloMentessegResponseDto(TanuloMentessegResponse model) => new TanuloMentessegResponseDto { ErtekelesAloliFelmentes = model.ErtekelesAloliFelmentes, TanoraLatogatasaAloliFelmentes = model.TanoraLatogatasaAloliFelmentes, SzovegesenErtekelheto = model.SzovegesenErtekelheto, FelmentesOka = model.FelmentesOka }; } }