public async Task <UserGameSession> SaveGameSessionData(Game game) { Models.User user = await _repositoryUser.GetWithChildrenAsync(game.SessionData.UserId); UserGameSession gameSession = user.AddGameSession(game, game.GameDataFile); await _repositoryUserGameSession.InsertAsync(gameSession); return(gameSession); }