예제 #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);
        }
예제 #2
0
 public void Update(GameAccountability game)
 {
     _context.Update(game);
     _context.SaveChanges();
 }