public HttpResponseMessage UpdatePaymentMode(UpdatePaymentMode updatePaymentModeData) { try { objPaymentBL.updatePaymentMode(updatePaymentModeData); return(Request.CreateResponse(HttpStatusCode.Created)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }