Nfield.Services.Implementation.NfieldSurveyPublishService.PutAsync C# (CSharp) Method

PutAsync() public method

public PutAsync ( string surveyId, Nfield.Models.SurveyPublishTypeUpgradeModel surveyPublishTypeUpgrade ) : System.Threading.Tasks.Task
surveyId string
surveyPublishTypeUpgrade Nfield.Models.SurveyPublishTypeUpgradeModel
return System.Threading.Tasks.Task
        public Task PutAsync(string surveyId, SurveyPublishTypeUpgradeModel surveyPublishTypeUpgrade)
        {
            CheckSurveyId(surveyId);
            return Client.PutAsJsonAsync(PublishSurveyApi(surveyId).AbsoluteUri, surveyPublishTypeUpgrade).
                ContinueWith(
                    responseMessageTask => responseMessageTask.Result.Content.ReadAsStringAsync().Result)
                .ContinueWith(
                    stringTask => JsonConvert.DeserializeObject<SurveyPublishTypeUpgradeModel>(stringTask.Result))
                .FlattenExceptions();
        }