public async Task <IActionResult> ViewFiles(int id)//Bucket Id
        {
            var cuser = await GetCurrentUserAsync();

            var bucketInfo = await _ossApiService.ViewBucketDetailAsync(id);

            if (bucketInfo.BelongingAppId == null)
            {
                return(NotFound());
            }
            var app = await _dbContext.Apps.FindAsync(bucketInfo.BelongingAppId);

            var files = await _ossApiService.ViewAllFilesAsync(await _appsContainer.AccessToken(app.AppId, app.AppSecret), id);

            var model = new ViewFilesViewModel(cuser)
            {
                BucketId   = files.BucketId,
                AllFiles   = files.AllFiles,
                AppId      = app.AppId,
                OpenToRead = bucketInfo.OpenToRead,
                BucketName = bucketInfo.BucketName
            };

            return(View(model));
        }
        public async Task <IActionResult> EditBucket(int id)//BucketId
        {
            var cuser = await GetCurrentUserAsync();

            var bucket = await _ossApiService.ViewBucketDetailAsync(id);

            var model = new EditBucketViewModel(cuser, bucket)
            {
                AppId = bucket.BelongingAppId
            };

            return(View(model));
        }