Exemple #1
0
        public Model.TestModel GetTestModelData()
        {
            var message = string.Empty;

            var response = _api.GetTestModelData();

            response.Wait();

            if (response.Result.ResponseMessage.StatusCode == HttpStatusCode.OK)
            {
                var result = response.Result.GetContent();
                return(result);
            }

            throw new Exception("Error");
        }