public bool AddProductType(string typeName, int parentID) { int id = DBAccessor.AddProductType(typeName, parentID); if (id == -1) { return(false); } ProductType type = new ProductType(id, typeName, parentID); productTypeList.AddType(type); return(true); }