Exemplo n.º 1
0
        public static bool AddGuestBL(Category newCategory)
        {
            bool categoryAdded = false;

            try
            {
                if (ValidateCategory(newCategory))
                {
                    CategoryDAL categoryDAL = new CategoryDAL();
                    categoryAdded = categoryDAL.AddCategoryDAL(newCategory);
                }
            }
            catch (GOException)
            {
                throw;
            }
            return(categoryAdded);
        }