public async Task Update(BoardgameDto model) { await _context.BoardGames.Persist(_mapper).InsertOrUpdateAsync(model); await _context.SaveChangesAsync(); }
public async Task Add(BoardgameDto model) { var boardgame = _mapper.Map <Boardgame>(model); await _context.SaveChangesAsync(); }