Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public bool Contains(ProductVendor productVendor)
 {
     return(this.List.Contains(productVendor));
 }
Exemple #4
0
 public void Remove(ProductVendor productVendor)
 {
     this.List.Remove(productVendor);
 }
Exemple #5
0
 public void Insert(int index, ProductVendor productVendor)
 {
     this.List.Insert(index, productVendor);
 }
Exemple #6
0
 public int IndexOf(ProductVendor productVendor)
 {
     return(this.List.IndexOf(productVendor));
 }
Exemple #7
0
 public int Add(ProductVendor productVendor)
 {
     return(this.List.Add(productVendor));
 }