public HomeController() { this._repository = new CompanyRepository(); _productRepository = new ProductRepository(); _productCompanyRepo = new ProductCompanyRepository(); _productGroupRepository = new ProductGroupRepository(); }
public UserProfileController() { var userrapo = new UserRepository(); _userService = new UserService(userrapo); _repository = new CompanyRepository(); _productGroupRepository = new ProductGroupRepository(); }
public UnitOfWork(LvMiniDbContext context, IUserRepository userRepository, ILogRepository logRepository, IProductGroupRepository productGroupRepository) { _context = context; UserRepository = userRepository; LogRepository = logRepository; ProductGroupRepository = productGroupRepository; }
public ProductService(IProductRepository repository) { _repository = repository; _companyRepository = new CompanyRepository(); _productCompanyRepo = new ProductCompanyRepository(); _productgroupRepo = new ProductGroupRepository(); _productScheduleRepo = new ProductScheduleRepository(); }
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 StaffController() { var userrapo = new UserRepository(); _userService = new UserService(userrapo); _repository = new CompanyRepository(); _productGroupRepository = new ProductGroupRepository(); var orderrapo = new OrderRepository(); _orderService = new OrderService(orderrapo); }
public ProductGroupAccessor(IProductGroupRepository productGroupRepository) { this.productGroupRepository = productGroupRepository; }
public UserService(IUserRepository repository) { _repository = repository; _companyRepository = new CompanyRepository(); _calendarRepository = new CalendarRepository(); _productGroupRepository = new ProductGroupRepository(); var productschedrapo = new ProductScheduleRepository(); _repositoryschedule = new ProductScheduleService(productschedrapo); }