public HttpResponseMessage GetBillingReason(int BillingMethodID) { try { return(new HttpResponseMessage(HttpStatusCode.OK) { Content = new StringContent(JsonConvert.SerializeObject(con.GetBillingReason(BillingMethodID), Formatting.None)) }); } catch (Exception ex) { ExceptionLog.LogException(ex); return(new HttpResponseMessage(HttpStatusCode.BadRequest)); } }