public void UpdateSiteInfo(Action <SiteInfo> populate) { SiteInfoRep.Update(CurrentSiteInfo, populate); ReloadCurrentSiteInfo(); }
public void ChangePassword(string newPassword) { SiteInfoRep.Update(CurrentSiteInfo, info => info.AdminPassword = newPassword); ReloadCurrentSiteInfo(); }