public List <InfrastructureDevice> GetUserDevices(int userId)
        {
            FakeDevicesRepository fakeDevices = new FakeDevicesRepository();
            var devices = fakeDevices.Current();

            return(devices.FindAll(_ => _.UserID == userId));
        }
        public bool AddDevice(int userId)
        {
            FakeDevicesRepository fakeDevices = new FakeDevicesRepository();

            if (fakeDevices.CreateDevice(userId))
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
        public void DeletDevice(int userId, int deviceId)
        {
            FakeDevicesRepository devices = new FakeDevicesRepository();

            devices.DeleteDevice(deviceId);
        }