37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.Tanmenet;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
using Kreta.Naplo.Dto.V3.Interfaces;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.Tanmenet
|
|
{
|
|
public class TanmenetItemListResponseDto : IDtoListDocumentation
|
|
{
|
|
[Required, Description(DescriptionLookUp.Id)]
|
|
public int Id { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.Tema)]
|
|
public string Tema { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.EvesOraszam)]
|
|
public int EvesOraszam { get; set; }
|
|
|
|
public static implicit operator TanmenetItemListResponseDto(TanmenetItemListResponse model) => new TanmenetItemListResponseDto
|
|
{
|
|
Id = model.Id,
|
|
Tema = model.Tema,
|
|
EvesOraszam = model.EvesOraszam
|
|
};
|
|
|
|
public DocumentationExampleDto ListExample
|
|
=> new DocumentationExampleDto("ListTanmenet",
|
|
new TanmenetRequestDto
|
|
{
|
|
OsztalyCsoportId = 130796,
|
|
TantargyId = 414780,
|
|
TanarUid = new Guid("bf37a8ca-8c59-4030-b6e1-4c1f5e80da48")
|
|
});
|
|
}
|
|
}
|