public ActionResult Edit(Tournament tournament)
 {
     if (ModelState.IsValid) {
         db.Entry(tournament).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index", "Home");
     }
     return View(tournament);
 }
        public ActionResult Create(Tournament tournament)
        {
            if (ModelState.IsValid) {
                db.Tournaments.Add(tournament);
                tournament.Owner = db.Users.First(u => u.Name == User.Identity.Name);
                db.SaveChanges();
                return RedirectToAction("Index", "Home");
            }

            return View(tournament);
        }