public B2BCheckoutService(ITransactionService transactionService, ICommerceContext commerceContext, VisitorTrackingContext trackingContext, ColonyContext colonyContext, HttpContextBase context) { _transactionService = transactionService; _commerceContext = commerceContext; _colonyContext = colonyContext; _trackingContext = trackingContext; _context = context; this.DataCashId = AppSettingsHelper.GetSafeValue("DatacashID", string.Empty); this.DataCashPassword = AppSettingsHelper.GetSafeValue("DatacashPassword", string.Empty); this.DataCashPageSetId = AppSettingsHelper.GetSafeValue("DataCashPageSetId", 1); }
public IReadOnlyCollection <Ants> Get() { using (var context = new ColonyContext()) return(context.Ants.ToList()); }