29 lines
1.1 KiB
C#
29 lines
1.1 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.Ora;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
using Kreta.Naplo.Dto.V3.Interfaces;
|
|
using static Kreta.Naplo.Dto.V3.Converter.ResponseModelConverter;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.Ora
|
|
{
|
|
public class OraFeljegyzesResponseDto : IDtoDocumentation
|
|
{
|
|
[Required, Description(DescriptionLookUp.TanuloId)]
|
|
public int TanuloId { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.FeljegyzesLista)]
|
|
public List<FeljegyzesResponseDto> FeljegyzesLista { get; set; }
|
|
|
|
public static implicit operator OraFeljegyzesResponseDto(OraFeljegyzesResponse model) => new OraFeljegyzesResponseDto
|
|
{
|
|
TanuloId = model.TanuloId,
|
|
FeljegyzesLista = ModelToDto(model.FeljegyzesLista)
|
|
};
|
|
public DocumentationExampleDto Example => new DocumentationExampleDto("GetOraFeljegyzesek", new OraFeljegyzesRequestDto()
|
|
{
|
|
TanoraId = 13279493
|
|
});
|
|
}
|
|
}
|