public bool SaveLogoAndSlogan(LogoAndSloganSettings logoAndSlogan) { FlatFieldsProvider.Instance.SaveFlatField("slogan", logoAndSlogan.Slogan); FlatFieldsProvider.Instance.SaveFlatField("logo_width", logoAndSlogan.LogoWidth); FlatFieldsProvider.Instance.SaveFlatField("logo_height", logoAndSlogan.LogoHeight); FlatFieldsProvider.Instance.SaveFlatField("logo", logoAndSlogan.LogoUrl); return true; }
public LogoAndSloganSettings LoadLogoAndSloganSettings() { var logoAndSloganSettings = new LogoAndSloganSettings(); logoAndSloganSettings.Slogan = FlatFieldsProvider.Instance.GetFlatFieldValue("slogan"); logoAndSloganSettings.LogoUrl = FlatFieldsProvider.Instance.GetFlatFieldValue("logo"); logoAndSloganSettings.LogoWidth = FlatFieldsProvider.Instance.GetFlatFieldValue("logo_width"); logoAndSloganSettings.LogoHeight = FlatFieldsProvider.Instance.GetFlatFieldValue("logo_height"); return logoAndSloganSettings; }