public async Task <bool> CreateManagementZoneAsync(ManagementZone body, CancellationToken cancellationToken = default) { var response = await GetManagementZonesUrl() .PostJsonAsync(body, cancellationToken) .ConfigureAwait(false); return(response.IsSuccessStatusCode); }
public async Task <bool> UpdateManagementZoneAsync(string id, ManagementZone body, CancellationToken cancellationToken = default) { var response = await GetManagementZonesUrl() .AppendPathSegment(id) .PutJsonAsync(body, cancellationToken) .ConfigureAwait(false); return(response.IsSuccessStatusCode); }