public async Task <IList <ProfessorDto> > GetProfessor() { var professorRepository = await _professorRepository.GetAll(); var professors = _mapper.Map <List <ProfessorDto> >(professorRepository); return(professors); }
public IQueryable <User> GetProfessors() { var professors = _professorRepository.GetAll(); return(professors); }
public IEnumerable <Professor> GetAllProfessors() { IProfessorRepository professorRepository = persistanceContext.GetProfessorRepository(); return(professorRepository.GetAll()); }
public IEnumerable <Professor> GetAll() { return(_professorRepository.GetAll(orderBy: o => o.OrderBy(p => p.LastName))); }
public IEnumerable <Domain.Entities.Professor> GetAll() => _professorRepository.GetAll();
public async Task <IEnumerable <ProfessorViewModel> > ObterProfessores() { return(Mapper.Map <IEnumerable <ProfessorViewModel> >(await _professorRepository.GetAll())); }