Example #1
0
        public static QueryStringBuilder AppendTo(this ZsPage page, QueryStringBuilder query)
        {
            if (page != null)
            {
                if (page.PageNumber > 0)
                {
                    query.Add("page", page.PageNumber.ToString());
                }

                if (page.RecordsPerPage > 0)
                {
                    query.Add("per_page", page.RecordsPerPage.ToString());
                }
            }

            return(query);
        }
Example #2
0
 public static string AppendTo(this ZsPage page, string baseUri)
 {
     return(page.AppendTo(new QueryStringBuilder(baseUri)).ToString());
 }