Exemplo n.º 1
0
        public static void createProductType(string productTypeName, string description, out string errorMessage)
        {
            ProductType isExist = getProductTypeByName(productTypeName);

            if (isExist == null)
            {
                bool success = checkConstraintProductType(productTypeName, description, out errorMessage);
                if (success == true)
                {
                    ProductTypeHandler.doCreateProductType(productTypeName, description);
                    errorMessage = "Success";
                }
            }
            else
            {
                errorMessage = "The Product Type Name is Exist !";
            }
        }