public async Task <IActionResult> AddParticipant(string id, string participantId) { try { var result = await _eventService.AddParticipantAsync( id, participantId); return(result.HasValue ? OkJson(result.Value.ToResponse()) : BadRequest()); } catch (Exception ex) { _logger.LogError(ex, "Error while adding board games to pub! " + $"PubId: {id}"); return(InternalServerErrorJson(ex)); } }