Exemplo n.º 1
0
        public static string BuildUrlForProduct(Catalog.Product p, System.Web.UI.Page page, string additionalParams)
        {
            string result = string.Empty;

            if (p != null)
            {
                result = page.GetRouteUrl("bvroute", new { slug = p.UrlSlug });
            }
            else
            {
                result = page.GetRouteUrl("bvroute", new { slug = "" });
            }


            if (additionalParams != string.Empty)
            {
                result = JoinUrlAndQuery(result, additionalParams);
            }

            return(result);
        }