Beispiel #1
0
 public static string UnknownIfIsNullOrEmpty(this string imagePath, EFileType eFileType, EFileContainer eFileContainer)
 {
     return(imagePath.IsNullOrEmpty()
         ? ServerDomainResolver.GetCurrentDomain() + "/Content/Images/System/Unknown" + eFileType + ".png"
         : Resolver(imagePath, eFileContainer));
 }
Beispiel #2
0
        public string DomainResolver(string filePath, EFileContainer fileContainer)
        {
            var appPath = string.Format("{0}{1}", ServerDomainResolver.GetCurrentDomain(), _destinationPath + fileContainer + "/" + filePath);

            return(appPath);
        }
Beispiel #3
0
        public static string Resolver(string filePath, EFileContainer fileContainer)
        {
            var appPath = string.Format("{0}{1}{2}", ServerDomainResolver.GetCurrentDomain(), FileSettings.ContentFolder, fileContainer + "/" + filePath);

            return(appPath);
        }