Exemplo n.º 1
0
 public async Task AddAsync(Guid userId, BasketFolder folder)
 {
     await _basketFolderRepository.AddAsync(folder, userId);
 }
Exemplo n.º 2
0
 public async Task AddAsync(BasketFolder folder, Guid userId)
 {
     await Collection.UpdateOneAsync(x => x.UserId == userId,
                                     Builders <BasketBlock> .Update.AddToSet(s => s.Folders, folder));
 }