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