public bool DeleteAddress(int addressID) { bool returnValue = false; var address = AddressInfoProvider.GetAddressInfo(addressID); if (address != null) { AddressInfoProvider.DeleteAddressInfo(addressID); //Delete data from Shipping Table.. ShippingAddressItem shippingAddress = new ShippingAddressItem(); string customTableClassName = shippingAddress.ClassName; DataClassInfo customTable = DataClassInfoProvider.GetDataClassInfo(customTableClassName); if (customTable != null) { CustomTableItemProvider.DeleteItems(customTableClassName, "COM_AddressID =" + addressID); returnValue = true; } } return(returnValue); }