public ActionResult Edit(RoundModel roundmodel)
 {
     if (ModelState.IsValid)
     {
         db.Entry(roundmodel).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(roundmodel);
 }
        public void PlayGame()
        {
            while (!IsFinished())
            {
                var round = new RoundModel(new TeamModel[] { Team1, Team2 });

                round.PlayRound();

                Rounds.Add(round);
            }
        }
        public ActionResult Create(RoundModel roundmodel)
        {
            if (ModelState.IsValid)
            {
                db.RoundModels.Add(roundmodel);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(roundmodel);
        }
        public void PlayGame()
        {
            while (!IsFinished())
            {
                var round = new RoundModel(new TeamModel[] { Team1, Team2 });

                round.PlayRound();

                Rounds.Add(round);
            }
        }