Example #1
0
 public JsonResult UserReplyFeedBack(int testid, int parentFeedBackId, string replyDetail, string role)
 {
     var common = new CommonService();
     common.OnRenderPartialViewToString += (model) =>
     {
         var result = string.Empty;
         try
         {
             result = this.RenderPartialViewToString("P_FeedBack_Form_Item_Reply", model);
         }
         catch (Exception)
         {
             common.success = false;
             common.message = Constants.DefaultExceptionMessage;
         }
         return result;
     };
     common.UserReplyFeedBack(testid, parentFeedBackId, replyDetail, role);
     return Json(new { common.success, common.message, common.generatedHtml });
 }