public ActionResult Delete(Guid id) { TournamentAccessRepository rep = new TournamentAccessRepository(); Tournament tournament = new Tournament(id); tournament = rep.GetTournamentByID(id); return(View("Delete", tournament)); }
public ActionResult Edit(Guid id) { ModelState.Clear(); TournamentAccessRepository rep = new TournamentAccessRepository(); Tournament tournament = new Tournament(id); tournament = rep.GetTournamentByID(id); return(View("Edit", tournament)); }