Esempio n. 1
0
 public JsonResult SaveThemeSetting(SystemSettingModalView settings)
 {
     JsonResult jsonResult = new JsonResult();
     try
     {
         if (settings != null)
         {
             _systemSettingService.SettingUpdate("DateFormat", settings.DateFormat);
             _systemSettingService.LoadSystemSettingConfiguration();
             jsonResult = Json(new { success = true }, JsonRequestBehavior.AllowGet);
         }
         else
         {
             jsonResult = Json(new { success = false }, JsonRequestBehavior.AllowGet);
         }
     }
     catch (Exception ex)
     {
         jsonResult = Json(new { success = false }, JsonRequestBehavior.AllowGet);
         throw ex;
     }
     return jsonResult;
 }