public async Task <APIResponse> GetMultiDetails(MultiDetailParameters multiDetailParameters) { try { var client = httpClientFactory.CreateClient(VendorServiceOperation.serviceName); UriBuilder url = new UriBuilder(servicesConfig.Vendor + VendorServiceOperation.GetMultiDetails()); url.Query = QueryStringHelper.ConvertToQueryString(multiDetailParameters); var response = await client.GetAsync(url.ToString()); if (response.IsSuccessStatusCode) { var multiDetail = JsonConvert.DeserializeObject <List <MultiDetailResponse> >(await response.Content.ReadAsStringAsync()); return(new APIResponse(multiDetail, HttpStatusCode.OK)); } return(new APIResponse(response.StatusCode)); } catch (Exception ex) { logger.Error(ex, "Exception in method 'GetMultiDetails()'"); var exMessage = ex.InnerException != null ? ex.InnerException.Message : ex.Message; return(new APIResponse(exMessage, HttpStatusCode.InternalServerError)); } }