public ProductVendor GetProductVendors(int productid) { ProductVendorData data = new ProductVendorData(); ProductVendor pv = new ProductVendor(); try { pv = data.GetProductVendor(productid); } catch (Exception ex) { log.Write(ex.Message, "GetProductVendors"); throw (ex); } finally { data = null; } return(pv); }
public bool UpdateProductVendor(ProductVendor productvendor) { ProductVendorData data = new ProductVendorData(); bool ret = false; try { ret = data.UpdateProductVendor(productvendor); } catch (Exception ex) { log.Write(ex.Message, "UpdateProductVendor"); throw (ex); } finally { data = null; } return(ret); }
public bool Contains(ProductVendor productVendor) { return(this.List.Contains(productVendor)); }
public void Remove(ProductVendor productVendor) { this.List.Remove(productVendor); }
public void Insert(int index, ProductVendor productVendor) { this.List.Insert(index, productVendor); }
public int IndexOf(ProductVendor productVendor) { return(this.List.IndexOf(productVendor)); }
public int Add(ProductVendor productVendor) { return(this.List.Add(productVendor)); }