Ejemplo n.º 1
0
        public ActionResult UpdateResult(Game game)
        {
            if (ModelState.IsValid)
            {
                this._gameService.UpdateGameResult(game);
                return RedirectToAction("Index");
            }

            return View(game);
        }
Ejemplo n.º 2
0
        public void Setup()
        {
            this._scorer = new Scorer();
            this._game = new Game
                        {
                            Result = new Result { HomeGoals = 1, GuestGoals = 1 },
                            HomeTeam = new Team(),
                            GuestTeam = new Team(),
                            GameStartDate = DateTime.Now,
                        };

            this._bet = new Bet { Game = _game };
        }
Ejemplo n.º 3
0
        public ActionResult Finish(Game game)
        {
            if (ModelState.IsValid)
            {
                this._gameService.FinishGame(game);
                return RedirectToAction("Index");
            }

            return View(game);
        }