Esempio n. 1
0
        public ActionResult Edit(int id)
        {
            var ts   = new TeamService(AllTeamRepository);
            var team = ts.Get(id);

            return(View("Edit", TeamModel.Build(team)));
        }
Esempio n. 2
0
        public ActionResult Index()
        {
            var ts       = new TeamService(AllTeamRepository);
            var allTeams = ts.All();

            return(View("Index", allTeams.Select(x => TeamModel.Build(x))));
        }