Ejemplo n.º 1
0
 public async Task <IActionResult> DeleteBucketAsync(string bucketName)
 {
     return(string.IsNullOrWhiteSpace(bucketName)
         ? BadRequest("please provide bucketName")
         : await ActionAsync(async() =>
     {
         var response = await _service.DeleteBucketAsync(bucketName);
         return StatusCode((int)response.HttpStatusCode, response);
     }));
 }
Ejemplo n.º 2
0
        public async Task <IActionResult> DeleteBucket([FromRoute] string bucketName)
        {
            var response = await _service.DeleteBucketAsync(bucketName);

            return(Ok(response));
        }