From 1f10c9d204ff33d9272af3f987462219a67d1860 Mon Sep 17 00:00:00 2001 From: Leeza Baidar Date: Fri, 24 May 2024 15:18:43 +0545 Subject: [PATCH] #IME Nepal Send API --- .../TPApiServices/Factory/ApiFactoryServices.cs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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; } }