public async Task <IActionResult> AddInvites([FromBody] BulkAttendeeRequest invites) { try { await _attendeeService.AddAttendees(invites) .ConfigureAwait(continueOnCapturedContext: false); return(Ok()); } catch (Exception ex) { _logger.LogError(ex, ex.Message); return(StatusCode(StatusCodes.Status500InternalServerError)); } }