public IHttpActionResult UnLockInquiry(int inquiryID, int userID) { WebResponseContentModel <bool> tmpUser = new WebResponseContentModel <bool>(); Del <bool> responseStatusHandler = ProcessContentModel; try { inquiryRepo.UnLockInquiry(inquiryID, userID); tmpUser.Content = true; responseStatusHandler(tmpUser); } catch (Exception ex) { tmpUser.Content = false; responseStatusHandler(tmpUser, ex); return(Json(tmpUser)); } return(Json(tmpUser)); }