public EnrolmentService ( IEnrolmentRepository enrolmentRepository, IStudentService studentService, IClassService classService ) { if (enrolmentRepository == null) { throw new ArgumentNullException("enrolmentRepository"); } if (studentService == null) { throw new ArgumentNullException("studentService"); } if (classService == null) { throw new ArgumentNullException("classService"); } _enrolmentRepository = enrolmentRepository; _studentService = studentService; _classService = classService; }
public EnrolmentController(IEnrolmentRepository repository, IMapper mapper) { _repository = repository; _mapper = mapper; }