public HttpResponseMessage getPaymentModeData() { try { DataTable dt = objPaymentBL.getPaymentMode(); return(Request.CreateResponse(HttpStatusCode.OK, dt)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }