public HttpResponseMessage updatePaymentDetailsData(UpdatePaymentDetails updatePaymentDetails) { try { objPaymentBL.updatePaymentDetails(updatePaymentDetails); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }