Skip to content
Snippets Groups Projects
Commit dd6a373a authored by snemeckayova's avatar snemeckayova
Browse files

Add EventParticipant DTOs

parent 31490555
No related branches found
No related tags found
2 merge requests!46Milestone-2,!29IssueEventService, EventCommentService, EventParticipantService Implementation
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; }
}
}
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; }
}
}
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment