public int AddProductCostHistory(ProductCostHistory productcosthistory) { int id = 0; try { id = data.AddProductCostHistory(productcosthistory); } catch (Exception ex) { log.Write(ex.Message, "AddProductCostHistory"); throw (ex); } finally { data = null; } return(id); }
public bool RemoveProductCostHistory(ProductCostHistory productcosthistory) { bool ret = false; try { ret = data.DeleteProductCostHistory(productcosthistory); } catch (Exception ex) { log.Write(ex.Message, "RemoveProductCostHistory"); throw (ex); } finally { data = null; } return(ret); }
public ProductCostHistory GetProductCostHistory(int productCodeHistoryID) { ProductCostHistory productCostHistory = new ProductCostHistory(); try { productCostHistory = data.GetProductCostHistory(productCodeHistoryID); } catch (Exception ex) { log.Write(ex.Message, "GetProductCostHistory"); throw (ex); } finally { data = null; } return(productCostHistory); }
public void UpdateProductCostHistory(ProductCostHistory productcosthistory) { }
public bool Contains(ProductCostHistory productCostHistory) { return(this.List.Contains(productCostHistory)); }
public void Remove(ProductCostHistory productCostHistory) { this.List.Remove(productCostHistory); }
public void Insert(int index, ProductCostHistory productCostHistory) { this.List.Insert(index, productCostHistory); }
public int IndexOf(ProductCostHistory productCostHistory) { return(this.List.IndexOf(productCostHistory)); }
public int Add(ProductCostHistory productCostHistory) { return(this.List.Add(productCostHistory)); }