예제 #1
0
 public JsonResult ReuseSearchQuestionTemplate(string term, List<int> tagids)
 {
     var common = new CommonService();
     common.OnRenderPartialViewToString += (model) =>
     {
         var result = string.Empty;
         try
         {
             result = this.RenderPartialViewToString("P_Reuse_Template_Question_Instance", model);
         }
         catch (Exception)
         {
             common.success = false;
             common.message = Constants.DefaultExceptionMessage;
         }
         return result;
     };
     common.ReuseSearchQuestionTemplate(term, tagids);
     return Json(new { common.success, common.message, common.resultlist });
 }