public async Task <List <string> > FilesList() { try { ListVersionsResponse listVersionsResponse = await _awss3BucketHelper.FilesList(); return(listVersionsResponse.Versions.Select(c => c.Key).ToList()); } catch (Exception e) { throw new Exception(e.Message); } }
public async Task <List <string> > FilesList(string bucketName) { try { ListVersionsResponse listVersions = await _AWSS3BucketHelper.FilesList(bucketName); return(listVersions.Versions.Select(c => c.Key).ToList()); } catch (Exception ex) { throw ex; } }