示例#1
0
        public int InsertCatalogImage(int id, byte[] imageBytes)
        {
            // TODO: Check if exists
            CatalogPicturesTableAdapter dataAdapter = new CatalogPicturesTableAdapter();

            return(dataAdapter.Insert(id, imageBytes));
        }
示例#2
0
        public int UpdateCatalogImage(DataRow dataRow)
        {
            CatalogPicturesTableAdapter dataAdapter = new CatalogPicturesTableAdapter();

            return(dataAdapter.Update(dataRow));
        }
示例#3
0
        public int DeleteCatalogImage(int id)
        {
            CatalogPicturesTableAdapter dataAdapter = new CatalogPicturesTableAdapter();

            return(dataAdapter.Delete(id));
        }
示例#4
0
        public int UpdateCatalogImage(int id, byte[] imageBytes)
        {
            CatalogPicturesTableAdapter dataAdapter = new CatalogPicturesTableAdapter();

            return(dataAdapter.Update(imageBytes, id));
        }