public void Delete(PowerStrip powerstrip)
        {
            var entry = _mqqtSvcDbContext.PowerStrips.Where(
                p => p.DeviceId == powerstrip.DeviceId).FirstOrDefault <PowerStripEntity>();

            if (entry != null)
            {
                _mqqtSvcDbContext.Entry(entry).State = EntityState.Deleted;
                _mqqtSvcDbContext.SaveChanges();
            }
        }
        public void Delete(Microcontroller microcontroller)
        {
            var entry = _mqqtSvcDbContext.Microcontrollers.Where(
                p => p.DeviceId == microcontroller.DeviceId).FirstOrDefault <MicrocontrollerEntity>();

            if (entry != null)
            {
                _mqqtSvcDbContext.Entry(entry).State = EntityState.Deleted;
                _mqqtSvcDbContext.SaveChanges();
            }
        }