예제 #1
0
        public static bool DeleteAddesstBL(int deleteAddressID)
        {
            bool addressDeleted = false;

            try
            {
                if (deleteAddressID > 0)
                {
                    Address_DAL addressDAL = new Address_DAL();
                    addressDeleted = addressDAL.DeleteAddressDAL(deleteAddressID);
                }
                else
                {
                    throw new GreatOutdoorsException("Invalid Guest ID");
                }
            }
            catch (GreatOutdoorsException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(addressDeleted);
        }
예제 #2
0
        public static bool DeleteAddesstBL(int deleteAddressID)
        {
            bool addressDeleted = false;

            try
            {
                if (deleteAddressID > 0)
                {
                    Address_DAL addressDAL = new Address_DAL();
                    addressDeleted = addressDAL.DeleteAddressDAL(deleteAddressID);
                }
                else
                {
                    throw new GOException("Invalid Address ID");
                }
            }
            catch (GOException)
            {
                throw;
            }

            return(addressDeleted);
        }