public JsonResult UpdateMaintenanceMode(XlnConfiguration xlnConfiguration) { ConfigWriter.UpdateXmlElement(xlnConfiguration, XmlPaths.Configuration, "PublicWebsite", "MaintenanceMode", xlnConfiguration); ConfigWriter.SaveXmlFile(XmlPaths.Configuration); return(Json(xlnConfiguration, JsonRequestBehavior.AllowGet)); }
public JsonResult UpdateCommon(XlnConfigCommon xlnConfigCommon) { ConfigWriter.UpdateXmlElement(xlnConfigCommon, XmlPaths.PublicWebSiteConfig, "configs", "common", xlnConfigCommon); ConfigWriter.SaveXmlFile(XmlPaths.PublicWebSiteConfig); return(Json(xlnConfigCommon, JsonRequestBehavior.AllowGet)); }