using CustomerOnlineV2.Common.Configs; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CustomerOnlineV2.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; } public static string GetProfilePhotoUploadPath() { return ReadWebConfig("profilePicUploadURL"); } public static string GetCustomerPortalUrl() { return ReadWebConfig("customerPortalUrl"); } public static string GetMobileApiUrl() { return ReadWebConfig("mobileJsonRxUrl"); } public static string GetMerchantEmail() { return ReadWebConfig("merchantemail"); } } }