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

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

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

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

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