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