public bool RemoveProductVendor(ProductVendor productvendor) { ProductVendorData data = new ProductVendorData(); bool ret = false; try { ret = data.DeleteProductVendor(productvendor); } catch (Exception ex) { log.Write(ex.Message, "RemoveProductVendor"); throw (ex); } finally { data = null; } return(ret); }