コード例 #1
0
 internal bool IsPurchaseTypeAllowed(Guid storeID, PurchasePolicyType policy, MarketDbContext context)
 {
     return(GetAsDiscountManager(storeID, context).IsPurchaseTypeAllowed(policy, context));
 }
コード例 #2
0
        internal bool MakePurcahsePolicyAllowed(Guid userID, Guid storeID, PurchasePolicyType policy, MarketDbContext context)
        {
            IStorePolicyManager policyManager = GetAsDiscountManagerAndCheckPermissions(storeID, userID, context);

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