mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 21:50:12 +01:00
19 lines
534 B
C#
19 lines
534 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using WebApp.Entities;
|
|
|
|
namespace WebApp.DTOs;
|
|
|
|
// Output values in JSON file
|
|
public record class EventDetailsDto
|
|
(
|
|
int EventId,
|
|
[Required] int? OrganisationId,
|
|
[Required] string? OrganisationName,
|
|
[Required][StringLength(50)] string Title,
|
|
[StringLength(500)] string Description,
|
|
[Required][StringLength(100)] string Location,
|
|
[Required] DateTime? EventDate,
|
|
ICollection<EventSkill> EventSkills,
|
|
ICollection<EventRegistration> EventRegistrations
|
|
);
|