// GET: FilteredEnrollmentData public ActionResult Index() { HttpContext.Session.SetString("CloudName", GetHostingEnvironment()); var blobArray = storageHelper.GetBlobNamesFromAzureStorage(); var stringList = blobArray == null ? new List <string>() : blobArray.ToList <string>(); List <FilteredEnrollmentData> filteredDataList = new List <FilteredEnrollmentData>(); foreach (string blobName in stringList) { filteredDataList.Add(JsonConvert.DeserializeObject <FilteredEnrollmentData>(storageHelper.DownloadBlobFromAzureStorage(blobName))); } return(View(filteredDataList)); }