Files
hermes/WebApp/DTOs/EventSummaryNoErDto.cs
eee4 efb71b24d3 fix: offload building DTOs to GUHF
DTO building allows for fully returning correct event's
skills and registrations
2025-06-01 20:33:58 +02:00

18 lines
521 B
C#

using System.ComponentModel.DataAnnotations;
using WebApp.Entities;
namespace WebApp.DTOs;
// Output values in JSON file
public record class EventSummaryNoErDto(
int EventId,
[Required] string Organisation,
[Required] int OrganisationId,
[Required][StringLength(50)] string Title,
[StringLength(500)] string Description,
[Required][StringLength(100)] string Location,
[Required] DateTime? EventDate,
ICollection<EventSkill> EventSkills
// ICollection<SkillSummaryDto> EventSkills
);