예제 #1
0
        public bool RemoveProductSubcategory(ProductSubcategory productsubcategory)
        {
            ProductSubcategoryData data = new ProductSubcategoryData();
            bool ret = false;

            try
            {
                ret = data.DeleteProductSubcategory(productsubcategory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "RemoveProductSubcategory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(ret);
        }
예제 #2
0
        public int AddProductSubcategory(ProductSubcategory productsubcategory)
        {
            ProductSubcategoryData data = new ProductSubcategoryData();
            int productSubCatID         = 0;

            try
            {
                productSubCatID = data.AddProductSubcategory(productsubcategory);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "AddProductSubcategory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(productSubCatID);
        }
예제 #3
0
        public ProductSubcategory GetProductSubcategory(int productSubCategoryID)
        {
            ProductSubcategoryData data = new ProductSubcategoryData();
            ProductSubcategory     psc  = new ProductSubcategory();

            try
            {
                psc = data.GetProductSubcategory(productSubCategoryID);
            }
            catch (Exception ex)
            {
                log.Write(ex.Message, "GetProductSubcategory");
                throw (ex);
            }
            finally
            {
                data = null;
            }
            return(psc);
        }
예제 #4
0
 public bool Contains(ProductSubcategory productSubcategory)
 {
     return(this.List.Contains(productSubcategory));
 }
예제 #5
0
 public void Remove(ProductSubcategory productSubcategory)
 {
     this.List.Remove(productSubcategory);
 }
예제 #6
0
 public void Insert(int index, ProductSubcategory productSubcategory)
 {
     this.List.Insert(index, productSubcategory);
 }
예제 #7
0
 public int IndexOf(ProductSubcategory productSubcategory)
 {
     return(this.List.IndexOf(productSubcategory));
 }
예제 #8
0
 public int Add(ProductSubcategory productSubcategory)
 {
     return(this.List.Add(productSubcategory));
 }