32 lines
1 KiB
C#
32 lines
1 KiB
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
|
using Kreta.Naplo.Dto.V3.Documentation;
|
|
using Kreta.Naplo.Dto.V3.Interfaces;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
|
{
|
|
public class MondatbankResponseDto : IDtoListDocumentation
|
|
{
|
|
[Required, Description(DescriptionLookUp.RovidNev)]
|
|
public string RovidNev { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.Nev)]
|
|
public string Nev { get; set; }
|
|
|
|
public DocumentationExampleDto ListExample
|
|
=> new DocumentationExampleDto(
|
|
"GetMondatbank",
|
|
new MondatbankRequestDto
|
|
{
|
|
TantargyId = 414771,
|
|
OsztalyCsoportId = 130796
|
|
});
|
|
|
|
public static implicit operator MondatbankResponseDto(MondatbankResponse model) => new MondatbankResponseDto
|
|
{
|
|
RovidNev = model.RovidNev,
|
|
Nev = model.Nev
|
|
};
|
|
}
|
|
}
|