feat: image url migration

registrations can now store image urls, which will be shown at view.html
This commit is contained in:
2025-06-02 03:01:10 +02:00
parent 4a82822d64
commit f7583738d7
12 changed files with 675 additions and 14 deletions

View File

@@ -35,8 +35,8 @@ public static class EventMapping
public static EventSummaryDto ToEventSummaryDto(this Event myEvent)
{
List<SkillSummaryDto> ssdto = new List<SkillSummaryDto>();
List<EventRegistrationDto> erdto = new List<EventRegistrationDto>();
List<SkillSummaryDto> ssdto = [];
List<EventRegistrationDto> erdto = [];
foreach (EventSkill es in myEvent.EventSkills)
{
@@ -69,6 +69,7 @@ public static class EventMapping
myEvent.OrganisationId,
myEvent.Title,
myEvent.Description ?? "",
myEvent.ImageURL,
myEvent.Location,
myEvent.EventDate,
myEvent.EventSkills
@@ -88,8 +89,8 @@ public static class EventMapping
public static EventDetailsDto ToEventDetailsDto(this Event myEvent)
{
List<SkillSummaryDto> ssdto = new List<SkillSummaryDto>();
List<EventRegistrationDto> erdto = new List<EventRegistrationDto>();
List<SkillSummaryDto> ssdto = [];
List<EventRegistrationDto> erdto = [];
foreach (EventSkill es in myEvent.EventSkills)
{