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