//Method of getting the detailed information of a game from the database and sending it up to the user public ActionResult DetailGame(int gameId) { //declaring list using model GamePO List <GamePO> mappedGame = new List <GamePO>(); //Beginning of processes try { //declaring list using Model GameDO in order to retrieve database information List <GameDO> game = _dataAccess.GameDetails(gameId); //loop to get all objects assigned appropriately foreach (GameDO dataObject in game) { //assign our PO list all of the values that were in the DO list via mapper mappedGame.Add(MapGameTF.GameDOtoPO(dataObject)); } } //catch to record any exceptions that crop up catch (Exception ex) { //call to method to record necessary information ErrorFile.ErrorHandlerPL(ex); } //finally to tie up any loose ends finally { } //Sends the data in the list to the view to be seen by the user. return(View(mappedGame)); }