Browse Source

#IME Nepal Send API

feature/Redmine-17825-Email_Template
Leeza Baidar 4 months ago
parent
commit
1f10c9d204
  1. 14
      Business/BusinessLogic/TPApiServices/Factory/ApiFactoryServices.cs

14
Business/BusinessLogic/TPApiServices/Factory/ApiFactoryServices.cs

@ -2,6 +2,7 @@
using Common.Utility;
using GMENepal.GMENepalAPIService;
using log4net;
using TPApiServices.IME.Services;
using TPService.GCC.Services;
using Unity;
@ -15,18 +16,23 @@ namespace Business.BusinessLogic.TPApiServices.Factory
public ITPApiServices GetServices(string providerNo)
{
if (providerNo == GetStatic.ReadWebConfig("gmenepal", ""))
if (providerNo == GetStatic.ReadWebConfig("gmenepal", ""))
{
log.Debug("Choose Provider as GMENepalAPI");
apiFactory = _container.Resolve<GMENepalAPI>();
}
}
else if (providerNo == GetStatic.ReadWebConfig("gccremit", ""))
{
log.Debug("Choose Provider as GCC ");
apiFactory = _container.Resolve<GCCAPI>();
}
else if (providerNo == GetStatic.ReadWebConfig("imeremit", ""))
{
log.Debug("Choose Provider as IMEREMIT ");
apiFactory = _container.Resolve<IMEServices>();
}
return apiFactory;
}
}
Loading…
Cancel
Save