Пример #1
0
 public JsonResult NewTest_InvitationTab(int testid)
 {
     var common = new CommonService();
     common.OnRenderPartialViewToString += (model) =>
     {
         var result = String.Empty;
         try
         {
             result = this.RenderPartialViewToString("P_InvitationTab", model);
         }
         catch (Exception)
         {
             common.success = false;
             common.message = Constants.DefaultExceptionMessage;
         }
         return result;
     };
     common.NewTest_InvitationTab(testid);
     return Json(new { common.generatedHtml, common.success, common.message });
 }