Beispiel #1
0
 public IActionResult Index()
 {
     //test list of images
     try
     {
         var allBlobs = _azureBlobService.ListAsync("assets");
         return(View(allBlobs));
     }
     catch (Exception e)
     {
         throw;
     }
     return(View());
 }
Beispiel #2
0
        public async Task <ActionResult> MySejateraReport()
        {
            try
            {
                var allBlobs = await _azureBlobService.ListAsync();

                return(View(allBlobs));
            }
            catch (Exception ex)
            {
                ViewData["message"] = ex.Message;
                ViewData["trace"]   = ex.StackTrace;
                return(View("Error"));
            }
        }
Beispiel #3
0
        public async Task <IActionResult> TestGetBlobs()
        {
            var allBlobs = await _azureBlobService.ListAsync();

            return(Ok(allBlobs));
        }
Beispiel #4
0
        public async Task <ActionResult> Index()
        {
            var allBlobs = await _azureBlobService.ListAsync();

            return(Ok(allBlobs));
        }