示例#1
0
        public List <Team> GetTeamsByDivision(string divisionName)
        {
            var teams    = DatabaseContext.ExecuteProcedure <List <Team> >("GetTeamsByDivisionName", new { DivisionName = divisionName });
            var division = _divisionRepository.GetDivisionByName(divisionName);

            teams.ForEach(t => t.Division = division);
            return(teams);
        }