Ejemplo n.º 1
0
 public JsonResult UpdateSettings(int testid, String settingKey, bool isactive, int? number, string text)
 {
     var common = new CommonService();
     common.OnRenderPartialViewToStringWithParameter += (model, isOwner) =>
     {
         var result = string.Empty;
         try
         {
             ViewBag.isOwner = isOwner;
             result = this.RenderPartialViewToString("P_SettingTab_ConfigDetail", model);
         }
         catch (Exception)
         {
             common.success = false;
             common.message = Constants.DefaultExceptionMessage;
         }
         return result;
     };
     common.UpdateSettings(testid, settingKey, isactive, number, text);
     return Json(new { common.success, common.message, common.generatedHtml });
 }