public async Task <ICollection <ProfessorResultViewModel> > GetProfessorsOfDepartment(int id) { return((await _professors.OfDepartment(id)) .Select(p => (ProfessorResultViewModel)p) .ToList()); }
public async Task <ICollection <ProfessorResultViewModel> > GetProfessorsOfDepartment(int id) { return((await _professors.OfDepartment(id)) .Select(p => (ProfessorResultViewModel)p) .ToList()); }