Ejemplo n.º 1
0
        public bool AddProductType(string typeName, int parentID)
        {
            int id = DBAccessor.AddProductType(typeName, parentID);

            if (id == -1)
            {
                return(false);
            }
            ProductType type = new ProductType(id, typeName, parentID);

            productTypeList.AddType(type);
            return(true);
        }