예제 #1
0
        public ActionResult <IEnumerable <SubjectDto> > GetAllSubjects()
        {
            var subjectItems = _repository.GetAll();

            return(Ok(_mapper.Map <IEnumerable <SubjectDto> >(subjectItems)));
        }
        public ActionResult <IEnumerable <RoomDto> > GetAllRooms()
        {
            var roomItems = _repository.GetAll();

            return(Ok(_mapper.Map <IEnumerable <RoomDto> >(roomItems)));
        }
        public ActionResult <IEnumerable <CourseDto> > GetAllCourses()
        {
            var courseItems = _repository.GetAll();

            return(Ok(_mapper.Map <IEnumerable <CourseDto> >(courseItems)));
        }
예제 #4
0
        public ActionResult <IEnumerable <LecturerDto> > GetAllLecturers()
        {
            var lecturerItems = _repository.GetAll();

            return(Ok(_mapper.Map <IEnumerable <LecturerDto> >(lecturerItems)));
        }
예제 #5
0
        public ActionResult <IEnumerable <StudentDto> > GetAllStudents()
        {
            var studentItems = _repository.GetAll();

            return(Ok(_mapper.Map <IEnumerable <StudentDto> >(studentItems)));
        }