/// <summary>
    ///     Gets the <see cref="UmbracoRouteResult" />
    /// </summary>
    public static UmbracoRouteResult GetRouteResult(this IPublishedRequest publishedRequest)
    {
        if (publishedRequest.IsRedirect())
        {
            return(UmbracoRouteResult.Redirect);
        }

        if (!publishedRequest.HasPublishedContent())
        {
            return(UmbracoRouteResult.NotFound);
        }

        return(UmbracoRouteResult.Success);
    }
 /// <summary>
 ///     Gets a value indicating whether the request was successfully routed
 /// </summary>
 public static bool Success(this IPublishedRequest publishedRequest)
 => !publishedRequest.IsRedirect() && publishedRequest.HasPublishedContent();