Пример #1
0
        private DataPage <Feed> getFeeds(long id)
        {
            String dataType = FeedType.GetByInt((int)id);
            long   userId   = ctx.GetLong("userId");
            User   user     = userService.GetById(userId);

            if (user != null)
            {
                return(feedService.GetAll(userId, dataType, 50));
            }
            else
            {
                return(feedService.GetAll(dataType, 50));
            }
        }