Exemplo n.º 1
0
        public List <Team> GetTeamsByDivision(int divisionId)
        {
            var teams    = DatabaseContext.ExecuteProcedure <List <Team> >("GetTeamsByDivisionId", new { DivisionId = divisionId });
            var division = _divisionRepository.GetDivisionById(divisionId);

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