Ejemplo n.º 1
0
        public async Task <QueryResultResource <LecturerResource> > GetLecturersByMajor(int id)
        {
            QueryResource queryResource = new QueryResource();

            var query       = mapper.Map <QueryResource, Query>(queryResource);
            var queryResult = await lecturerRepository.GetLecturersByMajor(id, query);

            return(mapper.Map <QueryResult <Lecturer>, QueryResultResource <LecturerResource> >(queryResult));
        }