示例#1
0
        public static bool DeleteAddressSupBL(int deleteAddressID)
        {
            bool addressSupDeleted = false;

            try
            {
                if (deleteAddressID > 0)
                {
                    AddressSupDAL addressSupDAL = new AddressSupDAL();
                    addressSupDeleted = addressSupDAL.DeleteAddressSupDAL(deleteAddressID);
                }
                else
                {
                    throw new InventoryException("Invalid Address ID");
                }
            }
            catch (InventoryException)
            {
                throw;
            }
            catch (Exception ex)
            {
                throw ex;
            }

            return(addressSupDeleted);
        }
示例#2
0
        public static bool DeleteAddressSupBL(string deleteAddressID)
        {
            bool addressSupDeleted = false;

            try
            {
                if (deleteAddressID != string.Empty)
                {
                    AddressSupDAL addressSupDAL = new AddressSupDAL();
                    addressSupDeleted = addressSupDAL.DeleteAddressSupDAL(deleteAddressID);
                }
                else
                {
                    throw new InventoryException("Invalid Address ID");
                }
            }
            catch (Exception ex)
            {
                throw new InventoryException(ex.Message);
            }



            return(addressSupDeleted);
        }