From a9b8092732e2012ffadc552052e2e070cbf380e4 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 17 Apr 2017 08:30:58 -0400 Subject: SignalR notifications --- Project-Unite/Controllers/APIController.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Project-Unite/Controllers/APIController.cs') 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 -- cgit v1.2.3