Exemple #1
0
        public int UpdateCatalogItem(DataRow dataRow)
        {
            CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter();

            return(dataAdapter.Update(dataRow));
        }
Exemple #2
0
        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));
        }