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")); }
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 })); }