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)); }