Esempio n. 1
0
 internal bool IsPurchaseTypeAllowed(Guid storeID, PurchasePolicyType policy, MarketDbContext context)
 {
     return(GetAsDiscountManager(storeID, context).IsPurchaseTypeAllowed(policy, context));
 }
Esempio n. 2
0
        internal bool MakePurcahsePolicyAllowed(Guid userID, Guid storeID, PurchasePolicyType policy, MarketDbContext context)
        {
            IStorePolicyManager policyManager = GetAsDiscountManagerAndCheckPermissions(storeID, userID, context);

            return(policyManager.MakePurcahsePolicyAllowed(policy, context));
        }
 public PurchasePolicyTypeNotAllowedException(PurchasePolicyType type) :
     base(String.Format("PurchasePolicyType type {0} is not allowed", type.ToString()))
 {
 }