示例#1
0
        public async Task <IEnumerable <TutorResource> > GetAllAsync()
        {
            var tutors = await _tutorService.ListAsync();

            var resources = _mapper
                            .Map <IEnumerable <Tutor>, IEnumerable <TutorResource> >(tutors);

            return(resources);
        }