Example #1
0
 public IHttpActionResult GetGroupAddress([FromUri] int groupId)
 {
     return(Authorized(token =>
     {
         try
         {
             var address = _finderService.GetGroupAddress(groupId);
             return (Ok(address));
         }
         catch (Exception e)
         {
             _logger.Error("Could not get address", e);
             var apiError = new ApiErrorDto("Get Address Failed", e);
             throw new HttpResponseException(apiError.HttpResponseMessage);
         }
     }));
 }