public Response.StateResponse GetStateLookUp(string countryID)
 {
     Response.StateResponse response = new Response.StateResponse();
     try
     {
         response = _subscriberHelper.GetStateData(countryID);
     }
     catch (Exception ex)
     {
         _logger.ErrorLog(ex, this.GetType().Name, MethodBase.GetCurrentMethod().Name);
     }
     return(response);
 }
Exemplo n.º 2
0
 public Response.StateResponse GetStateData(string countryID)
 {
     Response.StateResponse result = new Response.StateResponse();
     try
     {
         result = _httpClientHelper.Get <Response.StateResponse>(apiBaseURL + "state?pageNo=1&pageSize=1000" + "&countryID=" + countryID, _subcriptionAccessToken);
     }
     catch (Exception ex)
     {
         _logger.ErrorLog(ex, this.GetType().Name, MethodBase.GetCurrentMethod().Name);
     }
     return(result);
 }