diff options
| author | Michael <[email protected]> | 2017-04-17 09:25:54 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-17 09:25:54 -0400 |
| commit | 58cdd0d4efde97f5f260d538940dc9c436c54e79 (patch) | |
| tree | 65f1f76686623861e2ee59156cb9a49df2febe1e /Project-Unite/Controllers | |
| parent | 41ced12e3b43ce74d022cc075f645f23cb6b94ec (diff) | |
| download | project-unite-58cdd0d4efde97f5f260d538940dc9c436c54e79.tar.gz project-unite-58cdd0d4efde97f5f260d538940dc9c436c54e79.tar.bz2 project-unite-58cdd0d4efde97f5f260d538940dc9c436c54e79.zip | |
add a test button
Diffstat (limited to 'Project-Unite/Controllers')
| -rw-r--r-- | Project-Unite/Controllers/APIController.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/APIController.cs b/Project-Unite/Controllers/APIController.cs index 5767586..f21a385 100644 --- a/Project-Unite/Controllers/APIController.cs +++ b/Project-Unite/Controllers/APIController.cs @@ -4,6 +4,7 @@ using System.Linq; using System.Web; using System.Web.Mvc; using System.Web.Script.Serialization; +using Microsoft.AspNet.Identity; using Project_Unite.Models; namespace Project_Unite.Controllers @@ -47,6 +48,13 @@ namespace Project_Unite.Controllers } [Authorize] + public ActionResult TestNotification() + { + NotificationDaemon.NotifyEveryone(User.Identity.GetUserId(), "Test notification", "This is a test of the real-time notification system.", "#"); + return Content("Sent."); + } + + [Authorize] public ActionResult GetNotificationCount() { return Content(ACL.NotificationCountRaw(User.Identity.Name).ToString()); |
