public ActionResult Edit(int id) { var ts = new TeamService(AllTeamRepository); var team = ts.Get(id); return(View("Edit", TeamModel.Build(team))); }
public ActionResult Index() { var ts = new TeamService(AllTeamRepository); var allTeams = ts.All(); return(View("Index", allTeams.Select(x => TeamModel.Build(x)))); }