Пример #1
0
        public ActionResult Reveal(int col, int row)
        {
            var reveal_tile_command = new RevealTileCommand();
            reveal_tile_command.player_id = _player_identifier.get_player_identifier();
            reveal_tile_command.coordinate = new Coordinate(row, col);

            _bus.send(reveal_tile_command);

            return RedirectToAction("Index");
        }
Пример #2
0
        public ActionResult AjaxReveal(int col, int row)
        {
            var reveal_tile_command = new RevealTileCommand();
            reveal_tile_command.player_id = _player_identifier.get_player_identifier();
            reveal_tile_command.coordinate = new Coordinate(row, col);

            _bus.send(reveal_tile_command);

            return Json(new {success = true});
        }