Ejemplo n.º 1
0
        public static bool UpdateAddressBL(Address_Entities updateAddress)
        {
            bool addressUpdated = false;

            try
            {
                if (ValidateAddress(updateAddress))
                {
                    Address_DAL addressDAL = new Address_DAL();
                    addressUpdated = addressDAL.UpdateAddressDAL(updateAddress);
                }
            }
            catch (GreatOutdoorsException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(addressUpdated);
        }
Ejemplo n.º 2
0
        public static bool UpdateAddressBL(Address_Entities updateAddress)
        {
            bool addressUpdated = false;

            try
            {
                if (ValidateAddress(updateAddress))
                {
                    Address_DAL addressDAL = new Address_DAL();
                    addressUpdated = addressDAL.UpdateAddressDAL(updateAddress);
                }
                else
                {
                    throw new GOException("Invalid Address Credentials");
                }
            }
            catch (GOException ex)
            {
                throw new GOException(ex.Message);
            }

            return(addressUpdated);
        }