using System.Configuration; namespace Common.Helper { public static class ApplicationConfig { public static string GetDocumentUploadPath() { return ReadWebConfig("docUploadPath"); } public static string GetDocumentUploadUrl() { return ReadWebConfig("docUploadURL"); } public static string GetTelecomsIconRelativePath() { return ReadWebConfig("telecomsIconRelativePath"); } public static string GetCountryFlagRelativePath() { return ReadWebConfig("countryFlagRelativePath"); } public static string GetKycImageRelativePath() { return ReadWebConfig("kycImageRelativePath"); } public static string GetRewardImageRelativePath() { return ReadWebConfig("rewardImageRelativePath"); } public static string GetRootURL() { return ReadWebConfig("rootUrl"); } public static string GetMaximumFileSize() { return ReadWebConfig("maxFileSize"); } public static string ReadWebConfig(string key) { return ReadWebConfig(key, ""); } public static string ReadWebConfig(string key, string defValue) { return ConfigurationManager.AppSettings[key] ?? defValue; } } }