Exemple #1
0
 public InstructorsController(UnitOfWork <ApplicationContext> unitOfWork,
                              IModelBindingHelperAdaptor modelBindingHelperAdaptor)
 {
     _instructorRepo            = unitOfWork.InstructorRepository;
     _departmentRepo            = unitOfWork.DepartmentRepository;
     _courseRepo                = unitOfWork.CourseRepository;
     _courseAssignmentRepo      = unitOfWork.CourseAssignmentRepository;
     _modelBindingHelperAdaptor = modelBindingHelperAdaptor;
 }
Exemple #2
0
 public DepartmentsController(UnitOfWork <ApplicationContext> unitOfWork,
                              IModelBindingHelperAdaptor modelBindingHelperAdaptor,
                              IMapper mapper)
 {
     _departmentRepo            = unitOfWork.DepartmentRepository;
     _instructorRepo            = unitOfWork.InstructorRepository;
     _modelBindingHelperAdaptor = modelBindingHelperAdaptor;
     _mapper = mapper;
 }
Exemple #3
0
 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;
 }