init
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel;
|
||||
using System;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class TanuloErtekelesMentesRequestDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.ErtekelesDatuma)]
|
||||
public DateTime ErtekelesDatum { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesModId)]
|
||||
public int ErtekelesModId { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.ErtekelesTema)]
|
||||
public string ErtekelesTema { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesOsztalyzatId)]
|
||||
public int? ErtekelesOsztalyzatId { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzoveg)]
|
||||
public string ErtekelesSzoveg { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.ErtekelesSzazalek)]
|
||||
public int? ErtekelesSzazalek { get; set; }
|
||||
|
||||
public static implicit operator TanuloErtekelesMentesRequest(TanuloErtekelesMentesRequestDto dto) => new TanuloErtekelesMentesRequest
|
||||
{
|
||||
ErtekelesDatum = dto.ErtekelesDatum.ToLocalTime(),
|
||||
ErtekelesModId = dto.ErtekelesModId,
|
||||
ErtekelesTema = dto.ErtekelesTema,
|
||||
ErtekelesOsztalyzatId = dto.ErtekelesOsztalyzatId,
|
||||
ErtekelesSzoveg = dto.ErtekelesSzoveg,
|
||||
ErtekelesSzazalek = dto.ErtekelesSzazalek
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user