Ejemplo n.º 1
0
        public async Task <QueryResultResource <GroupResource> > GetGroups(string email, QueryResource queryResource)
        {
            var query       = mapper.Map <QueryResource, Query>(queryResource);
            var queryResult = await lecturerRepository.GetGroups(query, email);

            return(mapper.Map <QueryResult <Group>, QueryResultResource <GroupResource> >(queryResult));
        }