Exemplo n.º 1
0
        public ActionResult SignalAll()
        {
            var repos = new TileRepository();
            foreach (var tile in repos.GetTiles())
                tile.Signal.FireChanged();

            return RedirectToAction("index");
        }
Exemplo n.º 2
0
 public ActionResult Index()
 {
     var repos = new TileRepository();
     ViewData["tiles"] = repos.GetTiles();
     return View();
 }