예제 #1
0
 public IHttpActionResult GetPinByIpAddress([FromUri] string ipAddress)
 {
     try
     {
         var address = _finderService.GetAddressForIp(ipAddress.Replace('$', '.'));
         return(Ok(address));
     }
     catch (Exception ex)
     {
         var apiError = new ApiErrorDto("Get Pin By Ip Failed", ex);
         throw new HttpResponseException(apiError.HttpResponseMessage);
     }
 }