private string ResolveReferenceRoute(HypermediaObjectReferenceBase reference) { var resolvedAdress = routeResolver.ReferenceToRoute(reference); var query = reference.GetQuery(); resolvedAdress += queryStringBuilder.CreateQueryString(query); return(resolvedAdress); }
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)); }