private string ResolveReferenceRoute(HypermediaObjectReferenceBase reference)
        {
            var resolvedAdress = routeResolver.ReferenceToRoute(reference);
            var query          = reference.GetQuery();

            resolvedAdress += queryStringBuilder.CreateQueryString(query);

            return(resolvedAdress);
        }
Exemplo n.º 2
0
        private Tuple <string, string> ResolveReferenceRoute(HypermediaObjectReferenceBase reference)
        {
            var resolvedRoute = routeResolver.ReferenceToRoute(reference);
            var query         = reference.GetQuery();
            var buildRoute    = resolvedRoute.Url + queryStringBuilder.CreateQueryString(query);

            var resolvedRouteAvailableMediaTypes = string.Join(",", resolvedRoute.AvailableMediaTypes);

            return(new Tuple <string, string>(buildRoute, resolvedRouteAvailableMediaTypes));
        }