public void AddSingleQueryItem(QueryStrings item)
        {
            if (QueryList == null || QueryList.Count == 0)
            {
                QueryList = new List <QueryStrings>();
            }

            QueryList.Add(item);
        }
Пример #2
0
        /// <summary>
        /// Method using for generating uri with custom attributes.
        /// </summary>
        /// <param name="pageName">Page name.</param>
        /// <param name="item">QuerString item which contains atttribute and value.</param>
        /// <returns>Return query string.</returns>
        protected string GenerateURI(string pageName, QueryStrings item)
        {
            string querystring = "";

            if (item != null)
            {
                querystring = GetQueryStringBuilderInstance().AddQueryItem(item);
            }
            return(pageName + "?" + querystring);
        }
        public string AddQueryItem(QueryStrings item)
        {
            if (QueryList == null || QueryList.Count == 0)
            {
                QueryList = new List <QueryStrings>();
            }

            QueryList.Add(item);

            return(GenerateQueryString());
        }