Wonky.Client/Wonky.Entity/DTO/ReportDto.cs
2022-06-12 18:20:19 +02:00

14 lines
641 B
C#

using System.ComponentModel.DataAnnotations;
namespace Wonky.Entity.DTO;
public class ReportDto
{
[Required(ErrorMessage = "Dagtype skal angives")] public string DayTypeEnum { get; set; } = "";
[MaxLength(1000, ErrorMessage = "Du kan højst bruge 1000 tegn")] public string Description { get; set; } = "";
[MaxLength(100, ErrorMessage = "Du kan højst bruge 100 tegn")] public string SupervisedBy { get; set; } = "";
// Date interval (used for leave, sickLeave and work hours
public DateTime CheckIn { get; set; }
public DateTime CheckOut { get; set; }
public ReportFiguresDto Figures { get; set; } = new();
}