private async Task <string> GetSymptomGroup(string pathways) { var url = string.Format(_configuration.GetBusinessApiPathwaySymptomGroupUrl(pathways)); var symptomGroupResponse = await _restClient.ExecuteAsync <string>(new JsonRestRequest(url, Method.GET)); if (!symptomGroupResponse.IsSuccessful) { throw new Exception(string.Format("A problem occured getting the symptom group for {0}.", pathways)); } return(symptomGroupResponse.Data); }
private async Task <string> GetSymptomGroup(string pathways) { RestfulHelper restfulHelper = new RestfulHelper(); var symptomGroupResponse = await restfulHelper.GetResponseAsync(string.Format(_configuration.GetBusinessApiPathwaySymptomGroupUrl(pathways))); if (!symptomGroupResponse.IsSuccessStatusCode) { throw new Exception(string.Format("A problem occured getting the symptom group for {0}.", pathways)); } return (await symptomGroupResponse.Content.ReadAsStringAsync()); }