aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcinzelent <zelent.marcin@gmail.com>2017-11-23 10:55:32 +0100
committermarcinzelent <zelent.marcin@gmail.com>2017-11-23 10:55:32 +0100
commitefc3555b0cc3ddeb0404abcbc7030627617c9719 (patch)
treec2b5c4c8cc74b37a46215e985669a2c1e1282f91 /AirPollutionWebApi/Controllers/ReadingsController.cs
parentd5b8f7f8762cd8270a44227f23ce6f7a88ae3eac (diff)
Changed the way data is being get from database.
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;
}