示例#1
0
        private bool IsValid(string token)
        {
            var realToken = FromConfiguration.Get(SettingsName.Token);

            if (realToken != token)
            {
                throw new TokenException();
            }

            return(true);
        }
示例#2
0
        public virtual void Save()
        {
#if DEBUG
            if (FromConfiguration.Get(SettingsName.PersistentSave) == "True")
            {
                dbContext.SaveChanges();
            }
#else
            dbContext.SaveChanges();
#endif
        }