diff --git a/WebApp/DTOs/EventsDto.cs b/WebApp/DTOs/EventsDto.cs new file mode 100644 index 0000000..e2dcec3 --- /dev/null +++ b/WebApp/DTOs/EventsDto.cs @@ -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 EventSkills, + ICollection EventRegistrations + );