Esempio n. 1
0
        public ActionResult MakeMove(MoveDirection direction)
        {
            var viewModel = new Game15ViewModel();

            viewModel.BuildFromGameField(_gameAppService.MakeMove(direction));
            return(View("Index", viewModel));
        }
Esempio n. 2
0
        // GET: FifteenGame
        public ActionResult Index()
        {
            var viewModel = new Game15ViewModel();

            viewModel.BuildFromGameField(_gameAppService.GetCurrentGame());
            return(View(viewModel));
        }