public JsonResult ModalTestHistoryPopup(int testid) { var common = new CommonService(); common.OnRenderPartialViewToString += (model) => { var result = string.Empty; try { result = this.RenderPartialViewToString("P_Modal_Test_History", model); } catch (Exception) { common.message = Constants.DefaultExceptionMessage; common.success = false; } return result; }; common.ModalTestHistoryPopup(testid); return Json(new { common.success, common.message, common.generatedHtml }); }