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); }
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); }