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