Esempio n. 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     this.StoryList.DataBind(StoryCache.GetTaggedStories(this.UrlParameters.TagIdentifier, this.HostProfile.HostID, this.UrlParameters.PageNumber, this.UrlParameters.PageSize));
     this.Paging.RecordCount = StoryCache.GetTaggedStoryCount(this.UrlParameters.TagIdentifier, this.HostProfile.HostID);
     this.Paging.PageNumber  = UrlParameters.PageNumber;
     this.Paging.PageSize    = UrlParameters.PageSize;
     this.Paging.BaseUrl     = UrlFactory.CreateUrl(UrlFactory.PageName.ViewTag, HttpUtility.UrlEncode(this.UrlParameters.TagIdentifier));
 }
Esempio n. 2
0
            public static ApiPagedList <ApiStory> GetTaggedStories(int hostID, string tag, int pageNumber, int pageSize)
            {
                ApplyPageLimits(ref pageNumber, ref pageSize);
                PagedStoryCollection pagedCollection = new PagedStoryCollection();

                pagedCollection.Items = StoryCache.GetTaggedStories(tag, hostID, pageNumber, pageSize);
                pagedCollection.Total = StoryCache.GetTaggedStoryCount(tag, hostID);
                return(pagedCollection.ToApi());
            }