public IHttpActionResult RemovePinFromMap([FromBody] int participantId) { return(Authorized(token => { try { _finderService.DisablePin(participantId); _awsCloudsearchService.DeleteSingleConnectRecordInAwsCloudsearch(participantId, 1); // Call analytics _analyticsService.Track(AuthenticationRepository.GetContactId(token).ToString(), "RemovedFromMap"); return Ok(); } catch (Exception e) { _logger.Error("Could not create pin", e); var apiError = new ApiErrorDto("Remove pin from map failed", e); throw new HttpResponseException(apiError.HttpResponseMessage); } })); }