Пример #1
0
        /// <summary>
        /// Get notifications
        /// </summary>
        /// <param name="pageSize">Size of a result page</param>
        /// <param name="continuationToken">Continuation token</param>
        /// <returns>List of notifications</returns>
        public async Task <IEnumerable <NotificationModel> > GetNotifications(int pageSize, string continuationToken)
        {
            var notifications = await _repoNotifications.GetItemsPagingAsync(pageSize, continuationToken);

            IEnumerable <NotificationModel> output = _mapper.Map <IEnumerable <NotificationModel> >(notifications.List);

            return(output);
        }