init
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Kreta.Naplo.Domain.V3.HaziFeladat;
|
||||
using Kreta.Naplo.Dto.V3.Documentation;
|
||||
|
||||
namespace Kreta.Naplo.Dto.V3.HaziFeladat
|
||||
{
|
||||
public class HaziFeladatUpdateRequestDto
|
||||
{
|
||||
[Required, Description(DescriptionLookUp.HaziFeladatSzoveg)]
|
||||
public string Szoveg { get; set; }
|
||||
|
||||
[Required, Description(DescriptionLookUp.HaziFeladatHatarido)]
|
||||
public DateTime HataridoDatuma { get; set; }
|
||||
|
||||
[Description(DescriptionLookUp.CsatolmanyId)]
|
||||
public int? CsatolmanyId { get; set; }
|
||||
|
||||
public static implicit operator HaziFeladatUpdateRequest(HaziFeladatUpdateRequestDto dto) => new HaziFeladatUpdateRequest
|
||||
{
|
||||
Szoveg = dto.Szoveg,
|
||||
HataridoDatuma = dto.HataridoDatuma.ToLocalTime(),
|
||||
CsatolmanyId = dto.CsatolmanyId
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user