public ActionResult GuessGame(int Gueess, Guess guess) { if (Session["ranSess"] != null) { guess.randomList = (List <int>)Session["ranSess"]; } Session["ranSess"] = guess.randomList; guess.Guessed = Gueess; Guess.Guessing(guess); List <int> guessList = new List <int>(); if (Session["guessSess"] != null) { guessList = (List <int>)Session["guessSess"]; } guessList.Add(guess.Guessed); Session["guessSess"] = guessList; return(View(guess)); }