diff options
| author | Michael <[email protected]> | 2017-04-17 08:30:58 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-04-17 08:30:58 -0400 |
| commit | a9b8092732e2012ffadc552052e2e070cbf380e4 (patch) | |
| tree | 73be56bcba46bddc04bd728e932d438912276d1a /Project-Unite/Controllers/APIController.cs | |
| parent | c018558559b5454210d301ba693a046a07ea4cae (diff) | |
| download | project-unite-a9b8092732e2012ffadc552052e2e070cbf380e4.tar.gz project-unite-a9b8092732e2012ffadc552052e2e070cbf380e4.tar.bz2 project-unite-a9b8092732e2012ffadc552052e2e070cbf380e4.zip | |
SignalR notifications
Diffstat (limited to 'Project-Unite/Controllers/APIController.cs')
| -rw-r--r-- | Project-Unite/Controllers/APIController.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Project-Unite/Controllers/APIController.cs b/Project-Unite/Controllers/APIController.cs index 286b4f4..5767586 100644 --- a/Project-Unite/Controllers/APIController.cs +++ b/Project-Unite/Controllers/APIController.cs @@ -45,5 +45,11 @@ namespace Project_Unite.Controllers var db = new ApplicationDbContext(); return Content(Serializer.Serialize(db.Skins.ToArray())); } + + [Authorize] + public ActionResult GetNotificationCount() + { + return Content(ACL.NotificationCountRaw(User.Identity.Name).ToString()); + } } }
\ No newline at end of file |
