Beispiel #1
0
 /// <summary>
 /// Gets the absolute path.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <returns></returns>
 public static string ToAbsolutePath(this string source)
 {
     return(string.Join("/", new[] { UriUtility.GetSiteUrl(), source.RemoveRootChar().TrimStart('/') }));
 }