Beispiel #1
0
        public static bool DeleteAddressBL(int deleteAddressID)
        {
            bool AddressDeleted = false;

            try
            {
                if (deleteAddressID > 0)
                {
                    AddressDAL AddressDAL = new AddressDAL();
                    AddressDeleted = AddressDAL.DeleteAddressDAL(deleteAddressID);
                }
                else
                {
                    throw new AddressException("Invalid Address ID");
                }
            }
            catch (AddressException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(AddressDeleted);
        }