コード例 #1
0
        public IHttpActionResult GetCamperEmergencyContact(int eventId, int contactId)
        {
            return(Authorized(token =>
            {
                try
                {
                    var emergencyContacts = _campService.GetCamperEmergencyContactInfo(eventId, contactId, token);
                    return Ok(emergencyContacts);
                }

                catch (Exception e)
                {
                    var apiError = new ApiErrorDto("Camp Emergency Contact Info failed", e);
                    throw new HttpResponseException(apiError.HttpResponseMessage);
                }
            }));
        }