public static SingletonDbModel GetInstace() { if (SingletonDbModel.instance == null) { SingletonDbModel.instance = new SingletonDbModel(); } return(instance); }
private void AllConstructorsOpetarions() { this.P24 = new Przelewy24.Przelewy24(); this.P24.P24_url_status = HttpContext.Current.Request.Url.Authority + "/home/P24Status"; #if DEBUG this.P24.MerchantId = 1604; this.P24.PosId = 1604; this.P24.CrcKey = "4aca0b5e3950f78b"; this.P24.SandboxMode = true; #endif this.Transaction = new Transaction(this.P24); this.P24.TransactionDb = SingletonDbModel.GetInstace() as IP24Db; }