Example #1
0
 public async Task AddAsync(Client client, CancellationToken cancellationToken = default)
 {
     var entity = _mapper.Map <Entities.Client>(client);
     await _playingoContext.AddAsync(entity, cancellationToken);
 }
Example #2
0
 public async Task AddAsync(BoardGame boardGame, CancellationToken cancellationToken = default)
 {
     var entity = _mapper.Map <Entities.BoardGame>(boardGame);
     await _playingoContext.AddAsync(entity, cancellationToken);
 }