public static SessionService GetInstance() { if (_instance == null) { _instance = new SessionService(); } if (_instance.DbContext == null) { _instance.DbContext = CurrencyExchangerContext.GetInstance(); } return(_instance); }
protected static CurrencyExchangerContext GetCurrencyExchangerContext() { return(CurrencyExchangerContext.GetInstance()); }