mirror of
https://github.com/GCMatters/hermes.git
synced 2026-02-04 05:30:13 +01:00
15
WebApp/DTOs/EventsDto.cs
Normal file
15
WebApp/DTOs/EventsDto.cs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
using System.ComponentModel.DataAnnotations;
|
||||||
|
using WebApp.Entities;
|
||||||
|
|
||||||
|
namespace WebApp.DTOs;
|
||||||
|
public record class EventsDto(
|
||||||
|
int EventId,
|
||||||
|
int OrganisationId, //foreign key
|
||||||
|
[StringLength(200)] string Title,
|
||||||
|
[StringLength(800)] string Description,
|
||||||
|
[StringLength(100)] string Location,
|
||||||
|
DateTime EventDate,
|
||||||
|
Organisation? Organisation,
|
||||||
|
ICollection<EventSkill> EventSkills,
|
||||||
|
ICollection<EventRegistration> EventRegistrations
|
||||||
|
);
|
||||||
Reference in New Issue
Block a user