public HttpResponseMessage updateInactiveStatus(UpdateInActiveState updateUpdateInActiveState) { try { objPaymentBL.updateInactiveStatus(updateUpdateInActiveState); return(Request.CreateResponse(HttpStatusCode.OK)); } catch (Exception ex) { return(Request.CreateResponse(HttpStatusCode.InternalServerError, ex.Message)); } }