diff --git a/Business/BusinessLogic/TPApiServices/Factory/ApiFactoryServices.cs b/Business/BusinessLogic/TPApiServices/Factory/ApiFactoryServices.cs index 199bcca..b0c81b5 100644 --- a/Business/BusinessLogic/TPApiServices/Factory/ApiFactoryServices.cs +++ b/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(); - } + } else if (providerNo == GetStatic.ReadWebConfig("gccremit", "")) { log.Debug("Choose Provider as GCC "); apiFactory = _container.Resolve(); } - + else if (providerNo == GetStatic.ReadWebConfig("imeremit", "")) + { + log.Debug("Choose Provider as IMEREMIT "); + apiFactory = _container.Resolve(); + } + return apiFactory; } }