From efc3555b0cc3ddeb0404abcbc7030627617c9719 Mon Sep 17 00:00:00 2001 From: marcinzelent Date: Thu, 23 Nov 2017 10:55:32 +0100 Subject: Changed the way data is being get from database. --- AirPollutionWebApi/Controllers/ReadingsController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'AirPollutionWebApi/Controllers') 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 GetAllReadings() - { + { + Singleton.Instance.GetData(); return Singleton.Instance.Readings; } -- cgit v1.2.3