public void CancelCampaign(string accessId, CampaignDTO campaignDTO) { try { CampaignService.CancelCampaign(campaignDTO); } catch (Exception) { throw new HttpResponseException(new HttpResponseMessage(HttpStatusCode.InternalServerError) { Content = new StringContent("An error occurred, please try again or contact the administrator."), ReasonPhrase = "Critical Exception" }); } }