public IEnumerable <TokenViewModel> GetUserTokens(IEnumerable <string> userIds, bool hashedUserIds = false) { var tokens = TableStorageService.GetItems(userIds, null, null, hashedUserIds); var tokenModels = new List <TokenViewModel>(); // Save the files from Blob storage if they don't already exist to a temp location foreach (FileItem token in tokens) { SaveTokenToTemp(token); tokenModels.Add(new TokenViewModel { Id = token.FileGuid.ToString(), Name = token.Name, Type = token.Type, ImageUri = "/Temp/" + token.FileGuid + ".jpg" }); } return(tokenModels); }