Ejemplo n.º 1
0
        public IEnumerable <int> GetNewWebVisitNotifications(int userId, int accountId)
        {
            GetUserNotificationCountResponse response = userService.GetUnReadWebVisitNotificationsCount(
                new GetUserNotificationCountRequest()
            {
                RequestedBy = userId, AccountId = accountId
            });

            return(response.NotificationIds);
        }
Ejemplo n.º 2
0
        public int GetNewNotifications(int userId, int accountId, short roleId)
        {
            GetUserNotificationCountResponse response = userService.GetUnReadNotificationsCount(
                new GetUserNotificationCountRequest()
            {
                RequestedBy = userId, AccountId = accountId, RoleId = roleId
            });

            return(response.Count);
        }