iBlog.WebUI.Models.AboutConfig.Save C# (CSharp) Method

Save() public method

public Save ( ) : void
return void
        public void Save()
        {
            _configSettings.Save<XmlConfig>(this, _configName, _configPath);
        }

Usage Example

Esempio n. 1
0
 public void SaveAbout(AboutConfig conf)
 {
     var configSettings = new ConfigSettings();
     var config = new AboutConfig(configSettings, "About", Server.MapPath("~/Settings"))
     {
         FirstLine = conf.FirstLine,
         SecondLine = conf.SecondLine,
         PhotoPath = conf.PhotoPath,
         QrcodePath = conf.QrcodePath,
         ThirdLine = conf.ThirdLine,
         Profile = conf.Profile,
         Wechat = conf.Wechat,
         Email = conf.Email
     };
     config.Save();
 }