init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,33 @@
|
|||
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
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue