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()); }
public IList <Subject> GetAllSubject() { _subjectRepository = new SubjectRepository(_dbContext); var data = _subjectRepository.GetAllSubject(); return(data); }