Exemplo n.º 1
0
 public async Task AddAsync(Guid userId, string userEmail, string containerName)
 {
     var basketBlock = new BasketBlock(userId, userEmail, containerName);
     await _basketBlockRepository.AddAsync(basketBlock);
 }
Exemplo n.º 2
0
 public async Task AddAsync(BasketBlock basketBlock)
 => await Collection.InsertOneAsync(basketBlock);
Exemplo n.º 3
0
 public async Task AddAsync(Guid userId, string userEmail, string containerName, List <BasketFile> files,
                            List <BasketFolder> folders)
 {
     var basketBlock = new BasketBlock(userId, userEmail, containerName, files, folders);
     await _basketBlockRepository.AddAsync(basketBlock);
 }