public async void DeleteBucket([FromBody] DeleteBucketModel bucket) { BucketsApi buckets = new BucketsApi(); dynamic token = await OAuthController.GetInternalAsync(); buckets.Configuration.AccessToken = token.access_token; buckets.DeleteBucket(bucket.bucketKey); }
public async Task <dynamic> DeleteBucket([FromBody] DeleteBucketModel objInfo) { // get the bucket... BucketsApi Buck = new BucketsApi(); dynamic token = await OAuthController.GetInternalAsync(); Buck.Configuration.AccessToken = token.access_token; await Buck.DeleteBucketAsync(objInfo.bucketKey); return(Task.CompletedTask); }