Beispiel #1
0
        public static bool AddAddressBL(Address_Entities newAddress)
        {
            bool AddressAdded = false;

            try
            {
                if (ValidateAddress(newAddress))
                {
                    Address_DAL addressDAL = new Address_DAL();
                    AddressAdded = addressDAL.AddAddressDAL(newAddress);
                }
            }
            catch (GOException ex)
            {
                throw new GOException(ex.Message);
            }

            return(AddressAdded);
        }
Beispiel #2
0
        public static bool AddAddressBL(Address_Entities newAddress)
        {
            bool AddressAdded = false;

            try
            {
                if (ValidateAddress(newAddress))
                {
                    Address_DAL addressDAL = new Address_DAL();
                    AddressAdded = addressDAL.AddAddressDAL(newAddress);
                }
            }
            catch (GreatOutdoorsException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(AddressAdded);
        }