Пример #1
0
        public IHttpActionResult GetNotificationJournal(string objectId, string objectTypeId, int start, int count)
        {
            var result = _notificationManager.SearchNotifications(new SearchNotificationCriteria()
            {
                ObjectId = objectId, ObjectTypeId = objectTypeId, Skip = start, Take = count
            });

            var retVal = new webModels.SearchNotificationsResult();

            retVal.Notifications = result.Notifications.Select(nt => nt.ToWebModel()).ToArray();
            retVal.TotalCount    = result.TotalCount;

            return(Ok(retVal));
        }
        public IHttpActionResult GetNotificationJournal(string objectId, string objectTypeId, int start, int count)
        {
            var result = _notificationManager.SearchNotifications(new SearchNotificationCriteria() { ObjectId = objectId, ObjectTypeId = objectTypeId, Skip = start, Take = count });

            var retVal = new webModels.SearchNotificationsResult();
            retVal.Notifications = result.Notifications.Select(nt => nt.ToWebModel()).ToArray();
            retVal.TotalCount = result.TotalCount;

            return Ok(retVal);
        }