public int UpdateCatalogItem(DataRow dataRow) { CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter(); return(dataAdapter.Update(dataRow)); }
public int UpdateCatalogItem(int id, string name, string description, string pictureName, double price, int typeId, int brandId, bool isDisabled) { CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter(); return(dataAdapter.Update(name, description, pictureName, price, typeId, brandId, isDisabled, DateTime.UtcNow, id)); }