init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue