public IHttpActionResult GetDeviceStates(string deviceId)
        {
            if (!_deviceProvider.Exists(deviceId))
            {
                return(NotFound());
            }

            var states = _stateProvider.GetByDeviceId(deviceId);

            return(Ok(states));
        }