예제 #1
0
        public async Task <ActionResult <LecturerResource> > GetLecturerById(int id)
        {
            var lecturer = await _lecturerService.GetLecturerById(id);

            var lecturerResource = _mapper.Map <Lecturer, LecturerResource>(lecturer);

            return(Ok(lecturerResource));
        }