Hi, @MyLadys-4900,
You should confirm one things that it will return the newly created Service
entity from the HTTP Post response.
You could get jsonString from response.
var result = response.Result;
string jsonString = result.Content.ReadAsStringAsync().Result;
Then you can deserialize your object from json string:
Service returnService = JsonSerializer.Deserialize<Service>(jsonString);
Now, you can get Id from returnService.Id
.
---
If the answer doesn’t solve your issue, please provide more details of error that will help us track down what’s happening.
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Best Regards,
Michael Wang