Exemple #1
0
        public int InsertCatalogBrand(int id, string name)
        {
            CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter();

            return(dataAdapter.Insert(id, name));
        }
Exemple #2
0
        public DataTable GetCatalogBrands()
        {
            CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter();

            return(dataAdapter.GetData());
        }
Exemple #3
0
        public int UpdateCatalogBrand(DataRow dataRow)
        {
            CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter();

            return(dataAdapter.Update(dataRow));
        }
Exemple #4
0
        public int DeleteCatalogBrand(int id)
        {
            CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter();

            return(dataAdapter.Delete(id));
        }
Exemple #5
0
        public int UpdateCatalogBrand(int id, string brand)
        {
            CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter();

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