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 OrderController() { _companyrepository = new CompanyRepository(); var orderrapo = new OrderRepository(); this._orderService = new OrderService(orderrapo); }