public async Task <IActionResult> UpdateDevice(int deviceId, Device device)
        {
            Device exiDevice = await _deviceLogic.FindAsync(deviceId);

            if (exiDevice == null)
            {
                return(NoContent());
            }
            _deviceLogic.Update(device);
            return(Ok(device));
        }