public static async Task <String> loadFactorSuggestion(SectionSuggestionsRequestObject requestObject) { using (HttpClient client = new HttpClient()) { using (HttpResponseMessage resonse = await client.GetAsync(BaseUrl + "factorsuggestions?technologyname=" + requestObject.technologyName + "&technologyfield=" + requestObject.technologyField + "&evaluationContext=" + requestObject.evalutionContext + "&factorname=" + requestObject.factor)) { using (HttpContent content = resonse.Content) { string data = await content.ReadAsStringAsync(); if (data != null) { Debug.WriteLine(data); return(data); } } } } return(String.Empty); }
public FactorSugesstionViewModel() { requestObject = new SectionSuggestionsRequestObject(); }