Example #1
0
 public JsonResult NewTest_ScoreTab(int testid, string tab)
 {
     var common = new CommonService();
     common.OnRenderPartialViewToString += (model) =>
     {
         var result = String.Empty;
         try
         {
             ViewBag.Tab = tab;
             result = this.RenderPartialViewToString("P_ScoreTab", model);
         }
         catch (Exception)
         {
             common.success = false;
             common.message = Constants.DefaultExceptionMessage;
         }
         return result;
     };
     common.NewTest_ScoreTab(testid);
     return Json(new { common.generatedHtml, common.success, common.message });
 }