aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'AirPollutionWebApi/Controllers/ReadingsController.cs')
-rw-r--r--AirPollutionWebApi/Controllers/ReadingsController.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/AirPollutionWebApi/Controllers/ReadingsController.cs b/AirPollutionWebApi/Controllers/ReadingsController.cs
index 3ffe624..c8c8087 100644
--- a/AirPollutionWebApi/Controllers/ReadingsController.cs
+++ b/AirPollutionWebApi/Controllers/ReadingsController.cs
@@ -14,7 +14,8 @@ namespace AirPollutionWebApi.Controllers
public ReadingsController() { }
public IEnumerable<Reading> GetAllReadings()
- {
+ {
+ Singleton.Instance.GetData();
return Singleton.Instance.Readings;
}