public List <StudentDTO> GetStudentsInWaitingList(int courseID) { List <StudentDTO> waitingList = null; try { waitingList = _service.GetWaitingListByCourseID(courseID); } catch (AppObjectNotFoundException) { throw new HttpResponseException(HttpStatusCode.NotFound); } return(waitingList); }