Exemplo n.º 1
0
 public IHttpActionResult CamperConfirmation(int eventId, int contactId, int invoiceId, int paymentId)
 {
     return(Authorized(token =>
     {
         try
         {
             _campService.SendCampConfirmationEmail(eventId, invoiceId, paymentId, token);
             _campService.SetCamperAsRegistered(eventId, contactId);
             return Ok();
         }
         catch (Exception e)
         {
             var apiError = new ApiErrorDto("Camp Confirmation failed", e);
             throw new HttpResponseException(apiError.HttpResponseMessage);
         }
     }));
 }