Files
hermes/WebApp/DTOs/EventDetailsDto.cs
eee4 f7583738d7 feat: image url migration
registrations can now store image urls, which will be shown at view.html
2025-06-02 03:01:10 +02:00

23 lines
840 B
C#

using System.ComponentModel.DataAnnotations;
using WebApp.Entities;
namespace WebApp.DTOs;
// Output values in JSON file
public record class EventDetailsDto
{
public int EventId { get; set; }
[Required] public int? OrganisationId { get; set; }
[Required] public string? OrganisationName { 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; }
//ICollection<EventSkill> EventSkills,
public ICollection<SkillSummaryDto> EventSkills { get; set; }
public ICollection<EventRegistrationDto> EventRegistrations { get; set; }
public EventDetailsDto() { }
};