public void Update(int ProductID, DateTime StartDate, DateTime?EndDate, decimal StandardCost, DateTime ModifiedDate) { ProductCostHistory item = new ProductCostHistory(); item.ProductID = ProductID; item.StartDate = StartDate; item.EndDate = EndDate; item.StandardCost = StandardCost; item.ModifiedDate = ModifiedDate; item.MarkOld(); item.Save(UserName); }
public bool Destroy(object ProductID) { return(ProductCostHistory.Destroy(ProductID) == 1); }
public bool Delete(object ProductID) { return(ProductCostHistory.Delete(ProductID) == 1); }