35 lines
881 B
C#
35 lines
881 B
C#
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
|
|
};
|
|
}
|
|
}
|