public bool ClearCache()
 {
     MerchantCache.Clear();
     TerminalCache.Clear();
     ProcessingFactory.Clear();
     FormFactory.Clear();
     return(true);
 }
예제 #2
0
 public Merchant GetMerchant(int id) =>
 _useCache
         ? MerchantCache.Get(id, _dbContext)
         : _dbContext.Merchant.Include(i => i.MerchantIpRange).FirstOrDefault(x => x.Id == id);
예제 #3
0
 public Merchant GetMerchant(string token) =>
 _useCache
         ? MerchantCache.Get(token, _dbContext)
         : _dbContext.Merchant.Include(i => i.MerchantIpRange).FirstOrDefault(x => x.Token == token);