Beispiel #1
0
        public IActionResult GetDevices()
        {
            var userId = int.Parse(User.FindFirstValue("Id"));

            var userDevices = _deviceCache.GetDevices(userId);

            if (userDevices is null || userDevices.Count < 1)
            {
                return(BadRequest());
            }

            return(Ok(userDevices));
        }