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