public async Task <Dictionary <string, ValueSet> > RefreshValueSetAsync() { Dictionary <string, ValueSet> valueSets = new Dictionary <string, ValueSet>(); Uri uri = new Uri(string.Format(Constants.RestUrl, "valusets")); try { HttpResponseMessage response = await client.GetAsync(uri); if (response.IsSuccessStatusCode) { string content = await response.Content.ReadAsStringAsync(); valueSets = ValueSet.FromJson(content); } } catch (Exception ex) { Debug.WriteLine(@"\tERROR {0}", ex.Message); } return(valueSets); }