mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 21:50:12 +01:00
21 lines
760 B
C#
21 lines
760 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using WebApp.Entities;
|
|
|
|
namespace WebApp.DTOs;
|
|
|
|
// Output values in JSON file
|
|
public record class EventSummaryDto {
|
|
public int EventId { get; set; }
|
|
[Required] public string Organisation { get; set; }
|
|
[Required] public int OrganisationId { get; set; }
|
|
[Required] [StringLength(50)] public string Title { get; set; }
|
|
[StringLength(500)] public string Description { get; set; }
|
|
public string? ImageURL { get; set; }
|
|
[Required] [StringLength(100)] public string Location { get; set; }
|
|
[Required] public DateTime? EventDate { get; set; }
|
|
public ICollection<SkillSummaryDto> EventSkills { get; set; }
|
|
public ICollection<EventRegistrationDto> EventRegistrations { get; set; }
|
|
|
|
|
|
};
|