private static string GetPagedPath(int pageNumber, int pageSize, IUriService uri) { var absolutePath = uri.GetAbsolutePath(); var modifiedUri = QueryHelpers.AddQueryString(absolutePath, AttributeExtension.GetAttributeFrom <PaginationQuery, FromQueryAttribute>(nameof(PaginationQuery.PageNumber)).Name, pageNumber.ToString()); modifiedUri = QueryHelpers.AddQueryString(modifiedUri, AttributeExtension.GetAttributeFrom <PaginationQuery, FromQueryAttribute>(nameof(PaginationQuery.PageSize)).Name, pageSize.ToString()); return(modifiedUri); }