public async Task AddAsync(Guid userId, string userEmail, string containerName) { var basketBlock = new BasketBlock(userId, userEmail, containerName); await _basketBlockRepository.AddAsync(basketBlock); }
public async Task AddAsync(BasketBlock basketBlock) => await Collection.InsertOneAsync(basketBlock);
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); }