init
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Swashbuckle.Examples;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class TanuloErtekelesekRequestDto : IExamplesProvider
|
||||
{
|
||||
/// <summary>
|
||||
/// Tanuló id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int TanuloId { get; set; }
|
||||
|
||||
/// <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 TanuloErtekelesekRequest(TanuloErtekelesekRequestDto dto) => new TanuloErtekelesekRequest
|
||||
{
|
||||
TanuloId = dto.TanuloId,
|
||||
TantargyId = dto.TantargyId,
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId
|
||||
};
|
||||
|
||||
public object GetExamples() => new TanuloErtekelesekRequestDto
|
||||
{
|
||||
TanuloId = 218785,
|
||||
TantargyId = 330986,
|
||||
OsztalyCsoportId = 804093
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user