public ActionResult UpdateResult(Game game) { if (ModelState.IsValid) { this._gameService.UpdateGameResult(game); return RedirectToAction("Index"); } return View(game); }
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 }; }
public ActionResult Finish(Game game) { if (ModelState.IsValid) { this._gameService.FinishGame(game); return RedirectToAction("Index"); } return View(game); }