init
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.OsztalyCsoport;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.OsztalyCsoport
|
||||
{
|
||||
public class BejelentettSzamonkeresekRequestDto
|
||||
{
|
||||
/// <summary>
|
||||
/// Osztály/csoport id
|
||||
/// </summary>
|
||||
[Required]
|
||||
public int OsztalyCsoportId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Dátum
|
||||
/// </summary>
|
||||
[Required]
|
||||
public DateTime Datum { get; set; }
|
||||
|
||||
public static implicit operator BejelentettSzamonkeresekRequest(BejelentettSzamonkeresekRequestDto dto) => new BejelentettSzamonkeresekRequest
|
||||
{
|
||||
OsztalyCsoportId = dto.OsztalyCsoportId,
|
||||
Datum = dto.Datum.ToLocalTime()
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user