27 lines
972 B
C#
27 lines
972 B
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.Orarend;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.Orarend
|
|
{
|
|
public class TanuloForOraNaplozasListRequestDto
|
|
{
|
|
[Required, Description(DescriptionLookUp.TanuloId)]
|
|
public int Id { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.Mulasztas)]
|
|
public MulasztasForOraNaplozasRequestDto Mulasztas { get; set; }
|
|
|
|
[Description(DescriptionLookUp.FeljegyzesTipusLista)]
|
|
public List<int> FeljegyzesTipusLista { get; set; } = new List<int>();
|
|
|
|
public static implicit operator TanuloForOraNaplozasListRequest(TanuloForOraNaplozasListRequestDto model) => new TanuloForOraNaplozasListRequest
|
|
{
|
|
Id = model.Id,
|
|
Mulasztas = model.Mulasztas,
|
|
FeljegyzesTipusLista = model.FeljegyzesTipusLista
|
|
};
|
|
}
|
|
}
|