예제 #1
0
 public IHttpActionResult GetCampWaivers(int eventId, int contactId)
 {
     return(Authorized(token =>
     {
         try
         {
             var waivers = _campService.GetCampWaivers(eventId, contactId);
             return Ok(waivers);
         }
         catch (Exception e)
         {
             var apiError = new ApiErrorDto("Failed to get waiver data", e);
             throw new HttpResponseException(apiError.HttpResponseMessage);
         }
     }));
 }