public ProductController() { var productrapo = new ProductRepository(); _productService = new ProductService(productrapo); var productschedrapo = new ProductScheduleRepository(); _repositoryschedule = new ProductScheduleService(productschedrapo); }
public VideoController() { var videorepo = new VideoRepository(); _videoService = new VideoService(videorepo); var productschedrapo = new ProductScheduleRepository(); _repositoryschedule = new ProductScheduleService(productschedrapo); }
public UserController() { var userrapo = new UserRepository(); _userService = new UserService(userrapo); _repository = new CompanyRepository(); _productGroupRepository = new ProductGroupRepository(); var productschedrapo = new ProductScheduleRepository(); _repositoryschedule = new ProductScheduleService(productschedrapo); }
public UserService(IUserRepository repository) { _repository = repository; _companyRepository = new CompanyRepository(); _calendarRepository = new CalendarRepository(); _productGroupRepository = new ProductGroupRepository(); var productschedrapo = new ProductScheduleRepository(); _repositoryschedule = new ProductScheduleService(productschedrapo); }