public int InsertCatalogItem(int id, string name, string description, string pictureName, double price, int typeId, int brandId, bool isDisabled) { CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter(); return(dataAdapter.Insert(id, name, description, pictureName, price, typeId, brandId, isDisabled, DateTime.UtcNow)); }
public int DeleteCatalogItem(int id) { CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter(); return(dataAdapter.Delete(id)); }
public DataTable GetCatalogItems() { CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter(); return(dataAdapter.GetData()); }
public int UpdateCatalogItem(DataRow dataRow) { CatalogItemsTableAdapter dataAdapter = new CatalogItemsTableAdapter(); return(dataAdapter.Update(dataRow)); }