public async Task <IActionResult> ListBuckets()
        {
            try
            {
                var result = await _OSSService.ListBucketsAsync();

                return(Json(result));
            }
            catch (Exception ex)
            {
                return(Content(ex.Message));
            }
        }
Ejemplo n.º 2
0
        public async Task <IActionResult> ListBuckets()
        {
            try
            {
                var result = await _ossService.ListBucketsAsync();

                return(Json(new ResultObject()
                {
                    Status = true,
                    Data = result,
                }));
            }
            catch (Exception ex)
            {
                return(Json(new ResultObject()
                {
                    Status = false,
                    Message = ex.Message
                }));
            }
        }