/// <summary> /// Delete a Group Rollout /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ProblemDetails> DeleteGroupRolloutAsync(this IFeatureManagementAppTierAPI operations, System.Guid?id = default(System.Guid?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteGroupRolloutWithHttpMessagesAsync(id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public async Task <IActionResult> Delete(Guid id) { if (id == Guid.Empty) { return(BadRequest("Invalid Id")); } using (IFeatureManagementAppTierAPI api = CreateFeatureManagementApi()) { HttpOperationResponse result = await api.DeleteGroupRolloutWithHttpMessagesAsync(id); return(CreateResponse(result)); } }