public void SetPresence(Guid eventId, Guid userId, EventPresenceDTO dto)
        {
            var evt           = this._eventRepository.GetById(eventId);
            var participation = evt.Participations.First(part => part.UserId == userId);

            participation.Confirmed = dto.Present;

            this._eventRepository.Update(evt);
        }
 public IActionResult SetPresence(Guid eventId, [FromBody] EventPresenceDTO dto)
 {
     this.eventService.SetPresence(eventId, this.GetCurrentUserId(), dto);
     return(Ok());
 }