public void deleteFactory(int id) { DBHelper._Factory dbhelp = new DBHelper._Factory(); Factory existingFactory = dbhelp.GetByid(id); dbhelp.Delete(existingFactory); }
public void deleteFactory(int id) { DBHelper._Factory dbhelp = new DBHelper._Factory(); Factory existingFactory = dbhelp.GetByid(id); if (existingFactory == null) { throw new CDSException(10701); } dbhelp.Delete(existingFactory); }