Пример #1
0
        public void addManager(int store, string username,
                               bool editProduct, bool editDiscount, bool editPolicy, Session session)
        {
            if (store < 0)
            {
                throw new ArgumentException("illegal store number");
            }

            if (username == null)
            {
                throw new ArgumentNullException("null username");
            }

            if (username.Length == 0)
            {
                throw new ArgumentException("illegal username");
            }

            db.addManager(store, username, editProduct, editDiscount, editPolicy, session);
        }