Exemplo n.º 1
0
        public void addMinAmountPolicy(int storeId, int session, int amount)
        {
            if (storeId < 0)
            {
                throw new ILLArgumentException("illegal store number");
            }

            if (session < 0)
            {
                throw new NullReferenceException("session is a null reference");
            }
            if (amount < 0)
            {
                throw new ILLArgumentException("illegal amount");
            }
            db.addMinPurchasePolicy(amount, storeId, session);
        }