diff --git a/BusinessLayer/DTOs/EventParticipant/EventParticipantCreateDTO.cs b/BusinessLayer/DTOs/EventParticipant/EventParticipantCreateDTO.cs new file mode 100644 index 0000000000000000000000000000000000000000..3b176a868a27477e8726e63be27140cc16954e3c --- /dev/null +++ b/BusinessLayer/DTOs/EventParticipant/EventParticipantCreateDTO.cs @@ -0,0 +1,17 @@ +using DAL.Enums; +using System.ComponentModel.DataAnnotations; + +namespace BusinessLayer.DTOs.EventParticipant +{ + public class EventParticipantCreateDTO + { + [Required] + public Guid UserId { get; set; } + + [Required] + public Guid EventId { get; set; } + + [Required] + public ParticipantType Attendance { get; set; } + } +} diff --git a/BusinessLayer/DTOs/EventParticipant/EventParticipantDTO.cs b/BusinessLayer/DTOs/EventParticipant/EventParticipantDTO.cs new file mode 100644 index 0000000000000000000000000000000000000000..0132b78e3d7e5f296710cb3e05abe9d8dbbb08e7 --- /dev/null +++ b/BusinessLayer/DTOs/EventParticipant/EventParticipantDTO.cs @@ -0,0 +1,17 @@ +using BusinessLayer.DTOs.Event; +using BusinessLayer.DTOs.User; +using DAL.Enums; + +namespace BusinessLayer.DTOs.EventParticipant +{ + public class EventParticipantDTO + { + public Guid Id { get; set; } + public required UserDTO User { get; set; } + public required EventDTO Event { get; set; } + public ParticipantType Attendance { get; set; } + public DateTime CreatedAt { get; set; } + public DateTime UpdatedAt { get; set; } + public DateTime? DeletedAt { get; set; } + } +} diff --git a/BusinessLayer/DTOs/EventParticipant/EventParticipantUpdateDTO.cs b/BusinessLayer/DTOs/EventParticipant/EventParticipantUpdateDTO.cs new file mode 100644 index 0000000000000000000000000000000000000000..69f2298bf292388c8cc4e7095ed24e7b1f4e64b7 --- /dev/null +++ b/BusinessLayer/DTOs/EventParticipant/EventParticipantUpdateDTO.cs @@ -0,0 +1,11 @@ +using DAL.Enums; +using System.ComponentModel.DataAnnotations; + +namespace BusinessLayer.DTOs.EventParticipant +{ + public class EventParticipantUpdateDTO + { + [Required] + public ParticipantType Attendance { get; set; } + } +} \ No newline at end of file