Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private async Task Save()
 {
     await _dbContext.SaveChangesAsync();
 }