protected static Uri UrlForCollection(SuperCollection superCollection, Collection collection)
{
if (superCollection == null || collection == null || string.IsNullOrEmpty(superCollection.Title) || string.IsNullOrEmpty(collection.Title))
return null;
string path = _hostPath.Value + "/" + FriendlyUrl.FriendlyUrlEncode(superCollection.Title) + "/";
if (string.CompareOrdinal(superCollection.Title, collection.Title) != 0)
{
path += FriendlyUrl.FriendlyUrlEncode(collection.Title) + "/";
}
return new Uri(path);
}
}