Beispiel #1
0
        public void deleteFactory(int id)
        {
            DBHelper._Factory dbhelp          = new DBHelper._Factory();
            Factory           existingFactory = dbhelp.GetByid(id);

            dbhelp.Delete(existingFactory);
        }
Beispiel #2
0
        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);
        }