示例#1
0
        public static SessionService GetInstance()
        {
            if (_instance == null)
            {
                _instance = new SessionService();
            }

            if (_instance.DbContext == null)
            {
                _instance.DbContext = CurrencyExchangerContext.GetInstance();
            }

            return(_instance);
        }
示例#2
0
 protected static CurrencyExchangerContext GetCurrencyExchangerContext()
 {
     return(CurrencyExchangerContext.GetInstance());
 }