public TimetableService(ITimetableRepository timetableRepository, ITimetableViewModelRepository timetableViewModelRepository) { if (timetableRepository == null) throw new ArgumentNullException("TimetableRepository"); if (timetableViewModelRepository == null) throw new ArgumentNullException("TimetableViewModelRepository"); _timetableRepository = timetableRepository; _timetableViewModelRepository = timetableViewModelRepository; }
public TimetableService(ITimetableRepository timetableRepository, ITimetableViewModelRepository timetableViewModelRepository) { if (timetableRepository == null) { throw new ArgumentNullException("timetableRepository"); } if (timetableViewModelRepository == null) { throw new ArgumentNullException("timetableViewModelRepository"); } _timetableRepository = timetableRepository; _timetableViewModelRepository = timetableViewModelRepository; }