public TeacherController(ITeacherRepository repository, IServiceRepository serviceRepository, IPositionRepository positionRepository, ApplicationDbContext context, IGroupRepository groupRepository, IHostingEnvironment hostingEnviroment) { _repository = repository; _schoolServices = serviceRepository; _groupRepository = groupRepository; _hostingEnviroment = hostingEnviroment; _proxyFactory = new TeacherProxyFactory(context); _positionFactory = new PositionFactory(positionRepository); _factory = new TeacherFactory(context, _positionFactory); }
public GroupController(IGroupRepository repository, ITeacherRepository teacher, ApplicationDbContext context) { _repository = repository; _teachers = teacher; _teacherProxyFactory = new TeacherProxyFactory(context); }