public void OnGet() { var sessionAddress = HttpContext.Session.GetString("SessionAddress"); if (sessionAddress != null) { FizzBuzz = JsonConvert.DeserializeObject <FizzBuzz>(sessionAddress); if (HttpContext.Session.Id == FizzBuzz.SessionId) { History.AddElement(FizzBuzz); } } }