init
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user