コード例 #1
0
        public async Task <ActionResult> NotificationsCount()
        {
            var userId             = User.Identity.GetUserId();
            var notificationsCount = await _notificationsManager.GetNotificationsCount(userId);

            return(Json(notificationsCount, JsonRequestBehavior.AllowGet));
        }