internal bool IsPurchaseTypeAllowed(Guid storeID, PurchasePolicyType policy, MarketDbContext context) { return(GetAsDiscountManager(storeID, context).IsPurchaseTypeAllowed(policy, context)); }
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())) { }