Esempio n. 1
0
        public async Task <IEnumerable <FacultyResource> > ListAsync()
        {
            var faculties = await facultyService.ListAsync();

            var resources = mapper.Map <IEnumerable <Faculty>, IEnumerable <FacultyResource> >(faculties);

            return(resources);
        }