Beispiel #1
0
        public NotificationMessages AddNotification(string token)
        {
            var _document  = new DocumentsController(_context);
            var doccieLOS  = _document.UserLOS(token);
            var doccieLOGS = _document.UserLOGS(token);

            if (doccieLOGS == "Document" && doccieLOS == "Document")
            {
                _notificationMessage.DocumenstNotification(token);
                return(_notificationMessage);
            }
            else if (doccieLOGS == "Document" && doccieLOS == "No Document")
            {
                _notificationMessage.LOGS(token);
                return(_notificationMessage);
            }
            else if (doccieLOGS == "No Document" && doccieLOS == "Document")
            {
                _notificationMessage.LOS(token);
                return(_notificationMessage);
            }

            return(null);
        }