private IntegrationGameViewModel GetInsertedMainGame(IntegrationGameDetailDao insertedGame) { var game = GetInsertedAnotherGame(insertedGame); game.GameTranslations = FillAvailableTranslation(game.Id); game.IntegrationGameDetailModels = FillGameDetailModel(game.IntegrationGameId); return game; }
private IntegrationGameViewModel GetInsertedAnotherGame(IntegrationGameDetailDao insertedGame) { return new IntegrationGameViewModel { Id = insertedGame.IntegrationGame.Id, // this is global id IntegrationGameId = insertedGame.Id, // id for translation Language = ModelMapper.Map<Language, LanguageDao>(insertedGame.Language), GameName = insertedGame.IntegrationGameName, GameDescription = insertedGame.IntegrationGameDescription, }; }