public bool SaveFooterSettings(FooterSettings footerSettings) { FlatFieldsProvider.Instance.SaveFlatField("footer_background_image", footerSettings.ImageUrl); FlatFieldsProvider.Instance.SaveFlatField("footer_background_image_width", footerSettings.ImageWidth); FlatFieldsProvider.Instance.SaveFlatField("footer_background_image_height", footerSettings.ImageHeight); return true; }
public FooterSettings LoadFooterSettings() { var footerSettings = new FooterSettings(); footerSettings.ImageUrl = FlatFieldsProvider.Instance.GetFlatFieldValue("footer_background_image"); footerSettings.ImageWidth = FlatFieldsProvider.Instance.GetFlatFieldValue("footer_background_image_width"); footerSettings.ImageHeight = FlatFieldsProvider.Instance.GetFlatFieldValue("footer_background_image_height"); return footerSettings; }