public List <DeviceInfo> GetDeviceInfo(string sessionId) { if (userRepository.CanManageAverageTemperatures(sessionId)) { return(temperatureRepository.GetDeviceInfos()); } else { return(null); } }
public List <DeviceInfo> GetDeviceInfo(string sessionId) { if (userRepository.CanManageAverageTemperatures(sessionId)) { return(temperatureRepository.GetDeviceInfos()); } else { return(null); } }