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