예제 #1
0
 public IHttpActionResult GetCamperInfo(int eventId, int contactId)
 {
     return(Authorized(token =>
     {
         try
         {
             var camperInfo = _campService.GetCamperInfo(token, eventId, contactId);
             return Ok(camperInfo);
         }
         catch (Exception exception)
         {
             var apiError = new ApiErrorDto("CamperInfo", exception);
             throw new HttpResponseException(apiError.HttpResponseMessage);
         }
     }));
 }