public IEnumerable <ValueDto> GetValueData(DeviceId deviceId, int pageNumber, int pageSize, string filterBy, string filterString, bool filterExcluding, string filterStateBy, bool filterStateExcluding, string sortBy, bool sortAscending) { var config = _configHandler.GetDeviceConfig(deviceId); var valueSpecs = _configHandler.GetValueSpecifications(config.Values); var valueDto = valueSpecs.Select(x => new ValueDto { ConfigKey = x.Name, Name = x.DataSource.NameId, Value = _valueHandler.GetValue(x.DataSource.NameId) }).ToList(); return(valueDto); }