示例#1
0
        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);
        }
示例#2
0
 public FactorSugesstionViewModel()
 {
     requestObject = new SectionSuggestionsRequestObject();
 }