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); }
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); }
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); }
public bool Contains(ProductSubcategory productSubcategory) { return(this.List.Contains(productSubcategory)); }
public void Remove(ProductSubcategory productSubcategory) { this.List.Remove(productSubcategory); }
public void Insert(int index, ProductSubcategory productSubcategory) { this.List.Insert(index, productSubcategory); }
public int IndexOf(ProductSubcategory productSubcategory) { return(this.List.IndexOf(productSubcategory)); }
public int Add(ProductSubcategory productSubcategory) { return(this.List.Add(productSubcategory)); }