public void Update(int ProductID, string ProductName, int?SupplierID, int?CategoryID, string QuantityPerUnit, decimal?UnitPrice, short?UnitsInStock, short?UnitsOnOrder, short?ReorderLevel, bool Discontinued, bool?IsDeleted) { Product item = new Product(); item.MarkOld(); item.IsLoaded = true; item.ProductID = ProductID; item.ProductName = ProductName; item.SupplierID = SupplierID; item.CategoryID = CategoryID; item.QuantityPerUnit = QuantityPerUnit; item.UnitPrice = UnitPrice; item.UnitsInStock = UnitsInStock; item.UnitsOnOrder = UnitsOnOrder; item.ReorderLevel = ReorderLevel; item.Discontinued = Discontinued; item.IsDeleted = IsDeleted; item.Save(UserName); }
public void Update(int ProductID,string ProductName,int? SupplierID,int? CategoryID,string QuantityPerUnit,decimal? UnitPrice,short? UnitsInStock,short? UnitsOnOrder,short? ReorderLevel,bool Discontinued,bool? IsDeleted) { Product item = new Product(); item.MarkOld(); item.IsLoaded = true; item.ProductID = ProductID; item.ProductName = ProductName; item.SupplierID = SupplierID; item.CategoryID = CategoryID; item.QuantityPerUnit = QuantityPerUnit; item.UnitPrice = UnitPrice; item.UnitsInStock = UnitsInStock; item.UnitsOnOrder = UnitsOnOrder; item.ReorderLevel = ReorderLevel; item.Discontinued = Discontinued; item.IsDeleted = IsDeleted; item.Save(UserName); }