Esempio n. 1
0
 public ActionResult Index(GameOfLife.Models.GameBoard gameBoard)
 {
     if (gameBoard == null)
     {
         gameBoard = new Models.GameBoard();
     }
     return(PartialView(gameBoard));
 }
Esempio n. 2
0
 public ActionResult Run(GameOfLife.Models.GameBoard gameBoard)
 {
     gameBoard             = gameBoard.RunSimulation();
     TempData["gameBoard"] = gameBoard;
     return(RedirectToAction("Index", "Home"));
 }