Пример #1
0
 public OrderDetailService(IRepositoryAsync <OrderDetail> repository,
                           OrderStatisticService orderStatisticService,
                           IRepositoryAsync <OrderStatistic> repositoryOrderStatic,
                           IRepositoryAsync <Order> repositoryOrder,
                           IRepositoryAsync <ApplicationUser> userRepository
                           ) : base(repository)
 {
     _orderStatisticService = orderStatisticService;
     _repositoryOrder       = repositoryOrder;
     _repositoryOrderStatic = repositoryOrderStatic;
     db = new DataContext();
 }
Пример #2
0
 public OrderService(IRepositoryAsync <Order> repository,
                     CustomerService customerService,
                     OrderDetailService orderDetailService,
                     OrderStatisticService orderStatisticService,
                     IRepositoryAsync <OrderDetail> repositoryDetail,
                     IRepositoryAsync <OrderStatistic> repositoryStatistic,
                     IRepositoryAsync <ApplicationUser> userRepository,
                     IRepository <Staff> staff
                     ) : base(repository)
 {
     _repository            = repository;
     _customerService       = customerService;
     _orderDetailService    = orderDetailService;
     _orderStatisticService = orderStatisticService;
     _repositoryDetail      = repositoryDetail;
     _repositoryStatistic   = repositoryStatistic;
     _userRepository        = userRepository;
     _staff = staff;
 }