Exemple #1
0
        public async Task <IActionResult> GetAllAsync()
        {
            var facultyDtos = await _facultyService.GetAllAsync();

            var response = _facultyResponseComposer.ComposeForGetAll(facultyDtos);

            return(response);
        }
Exemple #2
0
 public async Task <IEnumerable <Faculty> > GetFaculties()
 {
     return(await _facultyService.GetAllAsync());
 }