I\'m trying to get content of HttpResponseMessage. It should be: {\"message\":\"Action \'\' does not exist!\",\"success\":false}
, but I don\'t know, how to get
I think the following image helps for those needing to come by T
as the return type.
By the answer of rudivonstaden
`txtBlock.Text = await response.Content.ReadAsStringAsync();`
but if you don't want to make the method async you can use
`txtBlock.Text = response.Content.ReadAsStringAsync();
txtBlock.Text.Wait();`
Wait() it's important, becаuse we are doing async operations and we must wait for the task to complete before going ahead.