예제 #1
0
        public List <Subject> GetAllSubjectWithPlayers()
        {
            //TODO
            //Listar corretamente as turmas
            var listSubject = Repository.GetAllSubject();

            //foreach (var c in listClass)
            //{
            //    c.ListPlayers = PlayerRepository.GetAllPlayers().Where(p => p.IdTeam == team.IdTeam);
            //}

            return(Repository.GetAllSubject());
        }
예제 #2
0
        public IList <Subject> GetAllSubject()
        {
            _subjectRepository = new SubjectRepository(_dbContext);
            var data = _subjectRepository.GetAllSubject();

            return(data);
        }