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