// INSERT public int InsertCatalogType(int id, string name) { CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter(); return(dataAdapter.Insert(id, name)); }
// GET public DataTable GetCatalogTypes() { CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter(); return(dataAdapter.GetData()); }
public int UpdateCatalogType(DataRow dataRow) { CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter(); return(dataAdapter.Update(dataRow)); }
// DELETE public int DeleteCatalogType(int id) { CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter(); return(dataAdapter.Delete(id)); }
// UPDATE public int UpdateCatalogType(int id, string type) { CatalogTypesTableAdapter dataAdapter = new CatalogTypesTableAdapter(); return(dataAdapter.Update(type, id)); }