예제 #1
0
        public ActionResult Index()
        {
            var repo = new TeamRepo();
            var teams = repo.GetTeams(1);

            return View(teams);
        }
예제 #2
0
        public ActionResult AddTeam()
        {
            var repo = new TeamRepo();
            var VM = new AddTeamVM();
            VM.TeamList = repo.GetTeams(1);

            return View(VM);
        }