Example #1
0
 public IHttpActionResult GetPinDetails([FromUri] int participantId)
 {
     try
     {
         var pin = _finderService.GetPinDetailsForPerson(participantId);
         pin.Address = _finderService.RandomizeLatLong(pin.Address);
         return(Ok(pin));
     }
     catch (Exception ex)
     {
         var apiError = new ApiErrorDto("Get Pin Details Failed", ex);
         throw new HttpResponseException(apiError.HttpResponseMessage);
     }
 }