Example #1
0
        public async Task <QueryResultResource <EnrollmentResource> > GetEnrollments(string email, QueryResource queryResource)
        {
            var query       = mapper.Map <QueryResource, Query>(queryResource);
            var queryResult = await lecturerRepository.GetEnrollments(query, email);

            return(mapper.Map <QueryResult <Enrollment>, QueryResultResource <EnrollmentResource> >(queryResult));
        }