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