All pastes #387342 Raw Edit

reznor

public text v1 · immutable
·published 2007-03-09 08:20 UTC
rendered paste body
        public bool updateProduct(int ProductId, string BrandName, string ProductName, double SRP, double GrossWeight, double NetWeight, double ShelfWidth, double ShelfHeight, double ShelfDepth)
        {
            try
            {
                int rowCount;
                SmartMartProductsDataSetTableAdapters.UpdateProductTableAdapter UpdateAdapter = new SmartMartProductsDataSetTableAdapters.UpdateProductTableAdapter();
                rowCount = UpdateAdapter.Fill(ProductId, BrandName, ProductName, SRP, GrossWeight, NetWeight, ShelfWidth, ShelfHeight, ShelfDepth, LastUpdated);
                if (rowCount == 0) return false;
                else return true;
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }