Exemplo n.º 1
0
        public async Task <IActionResult> CreateBucket(CreateBucketDTO createBucketDTO)
        {
            if (await _s3Service.BucketExists(createBucketDTO.Name))
            {
                return(BadRequest("Bucket already exists"));
            }
            var response = await _s3Service.CreateBucketAsync(createBucketDTO.Name);

            return(Ok(response));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> UploadImages(CreateBucketDTO createBucketDTO)
        {
            await _s3Service.UploadImagesAsync(createBucketDTO.Name);

            return(Ok());
        }