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.
87 lines
2.1 KiB
87 lines
2.1 KiB
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");
|
|
}
|
|
|
|
public static string GetpdfLibPath()
|
|
{
|
|
return ReadWebConfig("pdfLibPath");
|
|
}
|
|
}
|
|
}
|