Ejemplo n.º 1
0
        public async Task <ActionResult> Index()
        {
            var paths = new List <FileBlobDto>();
            var user  = await _tableStorageRepository.GetAsync(City, UserId);

            if (user != null)
            {
                if (user.RawPaths != null)
                {
                    user.Paths = JsonConvert.DeserializeObject <List <string> >(user.RawPaths);
                }
            }
            ViewBag.UserId = UserId;
            ViewBag.City   = City;
            if (user != null)
            {
                user.Paths.ForEach(x =>
                {
                    paths.Add(new FileBlobDto {
                        Name = x, Url = $"{_blobStorageRepository.BlobPath}/{ContainerType.picture}/{x}"
                    });
                });
            }
            return(View(paths));
        }
Ejemplo n.º 2
0
        public async Task <ActionResult> Update(string rowKey, string partitionKey)
        {
            var response = await _tableStorageRepository.GetAsync(partitionKey, rowKey);

            return(View(response));
        }