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)); }
public string DomainResolver(string filePath, EFileContainer fileContainer) { var appPath = string.Format("{0}{1}", ServerDomainResolver.GetCurrentDomain(), _destinationPath + fileContainer + "/" + filePath); return(appPath); }
public static string Resolver(string filePath, EFileContainer fileContainer) { var appPath = string.Format("{0}{1}{2}", ServerDomainResolver.GetCurrentDomain(), FileSettings.ContentFolder, fileContainer + "/" + filePath); return(appPath); }