You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.4 KiB
57 lines
1.4 KiB
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;
|
|
}
|
|
}
|
|
}
|