aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'PollutometerWebApi/Controllers/ReadingsController.cs')
-rw-r--r--PollutometerWebApi/Controllers/ReadingsController.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/PollutometerWebApi/Controllers/ReadingsController.cs b/PollutometerWebApi/Controllers/ReadingsController.cs
index b692a9c..cb91c71 100644
--- a/PollutometerWebApi/Controllers/ReadingsController.cs
+++ b/PollutometerWebApi/Controllers/ReadingsController.cs
@@ -7,7 +7,10 @@ namespace PollutometerWebApi.Controllers
{
public class ReadingsController : ApiController
{
- public ReadingsController() { }
+ public ReadingsController()
+ {
+ EmailSender.SendEmail();
+ }
public IHttpActionResult GetAllReadings()
{