public InstructorsController(UnitOfWork <ApplicationContext> unitOfWork, IModelBindingHelperAdaptor modelBindingHelperAdaptor) { _instructorRepo = unitOfWork.InstructorRepository; _departmentRepo = unitOfWork.DepartmentRepository; _courseRepo = unitOfWork.CourseRepository; _courseAssignmentRepo = unitOfWork.CourseAssignmentRepository; _modelBindingHelperAdaptor = modelBindingHelperAdaptor; }
public DepartmentsController(UnitOfWork <ApplicationContext> unitOfWork, IModelBindingHelperAdaptor modelBindingHelperAdaptor, IMapper mapper) { _departmentRepo = unitOfWork.DepartmentRepository; _instructorRepo = unitOfWork.InstructorRepository; _modelBindingHelperAdaptor = modelBindingHelperAdaptor; _mapper = mapper; }
public CoursesController(UnitOfWork <ApplicationContext> unitOfWork, IModelBindingHelperAdaptor modelBindingHelperAdaptor) { _courseRepo = unitOfWork.CourseRepository; _departmentRepo = unitOfWork.DepartmentRepository; _modelBindingHelperAdaptor = modelBindingHelperAdaptor; }
public StudentsController(UnitOfWork <ApplicationContext> unitOfWork, IModelBindingHelperAdaptor modelBindingHelperAdaptor) { _studentRepo = unitOfWork.StudentRepository; _modelBindingHelperAdaptor = modelBindingHelperAdaptor; }