public ActionResult UpdateTeam(long? idToUpdate) { if (idToUpdate.HasValue) { Models.Teams BDTeam = new Models.Teams(); BDTeam.SelectByID(idToUpdate.ToString()); return View(BDTeam); } else { return RedirectToAction("Index"); } }