init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,37 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Tanmenet;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
using Kreta.Naplo.Dto.V3.Interfaces;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Tanmenet
|
||||
{
|
||||
public class TanmenetItemListResponseDto : IDtoListDocumentation
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.Id)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.Tema)]
|
||||
public string Tema { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.EvesOraszam)]
|
||||
public int EvesOraszam { get; set; }
|
||||
|
||||
public static implicit operator TanmenetItemListResponseDto(TanmenetItemListResponse model) => new TanmenetItemListResponseDto
|
||||
{
|
||||
Id = model.Id,
|
||||
Tema = model.Tema,
|
||||
EvesOraszam = model.EvesOraszam
|
||||
};
|
||||
|
||||
public DocumentationExampleDto ListExample
|
||||
=> new DocumentationExampleDto("ListTanmenet",
|
||||
new TanmenetRequestDto
|
||||
{
|
||||
OsztalyCsoportId = 130796,
|
||||
TantargyId = 414780,
|
||||
TanarUid = new Guid("bf37a8ca-8c59-4030-b6e1-4c1f5e80da48")
|
||||
});
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.Tanmenet;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.Tanmenet
|
||||
{
|
||||
public class TanmenetRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Osztály/Csoport Id-ja
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Tantárgy Id-ja
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int TantargyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Feltöltő tanár idp uid-ja
|
||||
/// </summary>
|
||||
[Required]
|
||||
public Guid TanarUid { get; set; }
|
||||
|
||||
public static implicit operator TanmenetRequest(TanmenetRequestDto dto) => new TanmenetRequest
|
||||
{
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId,
|
||||
TantargyId = dto.TantargyId,
|
||||
TanarUid = dto.TanarUid
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue