33 lines
900 B
C#
33 lines
900 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
|
using Swashbuckle.Examples;
|
|
|
|
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
|
{
|
|
public class MondatbankRequestDto : IExamplesProvider
|
|
{
|
|
/// <summary>
|
|
/// Tantárgy id
|
|
/// </summary>
|
|
[Required]
|
|
public int TantargyId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Osztály/Csoport id
|
|
/// </summary>
|
|
[Required]
|
|
public int OsztalyCsoportId { get; set; }
|
|
|
|
public static implicit operator MondatbankRequest(MondatbankRequestDto dto) => new MondatbankRequest
|
|
{
|
|
TantargyId = dto.TantargyId,
|
|
OsztalyCsoportId = dto.OsztalyCsoportId
|
|
};
|
|
|
|
public object GetExamples() => new MondatbankRequestDto
|
|
{
|
|
TantargyId = 414771,
|
|
OsztalyCsoportId = 130796
|
|
};
|
|
}
|
|
}
|