public static ApiPagedList <ApiStory> GetUserFriendsKickedStories(int hostID, string username, int pageNumber, int pageSize) { ApplyPageLimits(ref pageNumber, ref pageSize); PagedStoryCollection pagedCollection = new PagedStoryCollection(); pagedCollection.Items = StoryCache.GetFriendsKickedStories(username, hostID, pageNumber, pageSize); pagedCollection.Total = StoryCache.GetFriendsKickedStoriesCount(username, hostID); return(pagedCollection.ToApi()); }
protected void Page_Load(object sender, EventArgs e) { this.UserProfileHeader.User = this.UserProfile; this.StoryListControl.NoStoriesCaption = string.Format("Friends of {0} have not kicked any stories.", this.UrlParameters.UserIdentifier); this.StoryListControl.Title = "Stories kicked by friends of " + this.UrlParameters.UserIdentifier; if (!this.UserProfile.Friends.Count.Equals(0)) { this.StoryListControl.DataBind(StoryCache.GetFriendsKickedStories(this.UrlParameters.UserIdentifier, this.HostProfile.HostID, this.UrlParameters.PageNumber, this.UrlParameters.PageSize)); this.Paging.RecordCount = StoryCache.GetFriendsKickedStoriesCount(this.UrlParameters.UserIdentifier, this.HostProfile.HostID); } this.Paging.PageNumber = UrlParameters.PageNumber; this.Paging.PageSize = UrlParameters.PageSize; this.Paging.BaseUrl = UrlFactory.CreateUrl(this.PageName, this.UrlParameters.UserIdentifier); }