public async Task AddAsync(Guid userId, BasketFile file) { await _basketFileRepository.AddAsync(file, userId); }
public async Task AddAsync(BasketFile file, Guid userId) { await Collection.UpdateOneAsync(x => x.UserId == userId, Builders <BasketBlock> .Update.AddToSet(s => s.Files, file)); }