Browse Source

#IME Nepal Send API

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

8
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;
@ -16,7 +17,7 @@ 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>();
@ -26,6 +27,11 @@ namespace Business.BusinessLogic.TPApiServices.Factory
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