public SiteInfo GetSiteInfo() { return(SiteInfoRep.Get()); }
public void ChangePassword(string newPassword) { SiteInfoRep.Update(CurrentSiteInfo, info => info.AdminPassword = newPassword); ReloadCurrentSiteInfo(); }
public void UpdateSiteInfo(Action <SiteInfo> populate) { SiteInfoRep.Update(CurrentSiteInfo, populate); ReloadCurrentSiteInfo(); }
public void CreateDefaultSiteInfo() { SiteInfoRep.Insert("Site Title Here", "Site Slogan Here", "password", 60, "Featuring"); ReloadCurrentSiteInfo(); }