private bool IsValid(string token) { var realToken = FromConfiguration.Get(SettingsName.Token); if (realToken != token) { throw new TokenException(); } return(true); }
public virtual void Save() { #if DEBUG if (FromConfiguration.Get(SettingsName.PersistentSave) == "True") { dbContext.SaveChanges(); } #else dbContext.SaveChanges(); #endif }