public async Task <GamePick> CreateAsync(Game game, User user) { GamePick gamePick = new GamePick() { Game = game, GameId = game.Id, User = user, UserId = user.Id }; await _dbContext.AddAsync(gamePick); await _dbContext.SaveChangesAsync(); return(gamePick); }
private async Task Save() { await _dbContext.SaveChangesAsync(); }