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