30 lines
907 B
C#
30 lines
907 B
C#
using System.ComponentModel;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Ellenorzo.Domain.VN.Lep;
|
|
using Kreta.Ellenorzo.Dto.VN.Documentation;
|
|
using Swashbuckle.Examples;
|
|
|
|
namespace Kreta.Ellenorzo.Dto.VN.Lep
|
|
{
|
|
public class GondviseloEngedelyezesRequestDto : IExamplesProvider
|
|
{
|
|
[Required, Description(DescriptionLookUp.EloadasId)]
|
|
public int EloadasId { get; set; }
|
|
|
|
[Required, Description(DescriptionLookUp.Dontes)]
|
|
public bool? Dontes { get; set; }
|
|
|
|
public static implicit operator GondviseloEngedelyezesRequest(GondviseloEngedelyezesRequestDto dto) => new GondviseloEngedelyezesRequest
|
|
{
|
|
EloadasId = dto.EloadasId,
|
|
Dontes = dto.Dontes
|
|
};
|
|
|
|
public object GetExamples() => new GondviseloEngedelyezesRequestDto
|
|
{
|
|
EloadasId = 8796,
|
|
Dontes = true
|
|
};
|
|
}
|
|
}
|