public int InsertCatalogBrand(int id, string name) { CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter(); return(dataAdapter.Insert(id, name)); }
public DataTable GetCatalogBrands() { CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter(); return(dataAdapter.GetData()); }
public int UpdateCatalogBrand(DataRow dataRow) { CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter(); return(dataAdapter.Update(dataRow)); }
public int DeleteCatalogBrand(int id) { CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter(); return(dataAdapter.Delete(id)); }
public int UpdateCatalogBrand(int id, string brand) { CatalogBrandsTableAdapter dataAdapter = new CatalogBrandsTableAdapter(); return(dataAdapter.Update(brand, id)); }