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