Exemple #1
0
        public void deleteIoTHub(string IoTHubAlias)
        {
            DBHelper._IoTHub dbhelp         = new DBHelper._IoTHub();
            IoTHub           existingIoTHub = dbhelp.GetByid(IoTHubAlias);

            dbhelp.Delete(existingIoTHub);
        }
Exemple #2
0
        public void deleteIoTHub(int Id)
        {
            DBHelper._IoTHub dbhelp         = new DBHelper._IoTHub();
            IoTHub           existingIoTHub = dbhelp.GetByid(Id);

            if (existingIoTHub == null)
            {
                throw new CDSException(10901);
            }

            dbhelp.Delete(existingIoTHub);
        }