Exemplo n.º 1
0
        public GameAccountability AddGameAccountability(PlayerParty playerOne, PlayerParty playerTwo, GameAccountabilityType accountabilityType)
        {
            var accountability = new GameAccountability
            {
                PlayerOne = playerOne,
                PlayerTwo = playerTwo,
                GameType  = accountabilityType,
                TimePoint = DateTime.Now,
            };

            _context.Add(accountability);
            _context.SaveChanges();

            return(accountability);
        }
Exemplo n.º 2
0
 public void Update(GameAccountability game)
 {
     _context.Update(game);
     _context.SaveChanges();
 }