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