public CartItemServiceImpl(IUnitOfWorks unitOfWorks, IMapper mapper) { this._unitOfWorks = unitOfWorks; this._cartItemRepo = this._unitOfWorks.CartItemRepository(); this._cartRepo = this._unitOfWorks.CartRepository(); this._bookRepo = this._unitOfWorks.BookRepository(); this._mapper = mapper; }
public BookServiceImpl(IUnitOfWorks unitOfWork, IMapper mapper, IPhotoService photoService) { this._unitOfWorks = unitOfWork; this._bookRepository = this._unitOfWorks.BookRepository(); this._authorRepository = this._unitOfWorks.AuthorRepository(); this._publisherRepository = this._unitOfWorks.PublisherRepository(); this._cartItemRepo = this._unitOfWorks.CartItemRepository(); this._categoryRepo = this._unitOfWorks.CategoryRepository(); this._mapper = mapper; this._photoService = photoService; }
public OrderServiceImpl(IUnitOfWorks unitOfWorks, IMapper mapper, IEmailService emailService, IUserService userService) { this._unitOfWorks = unitOfWorks; this._mapper = mapper; this._cartRepo = _unitOfWorks.CartRepository(); this._orderRepo = _unitOfWorks.OrderRepository(); this._orderItemRepo = _unitOfWorks.OrderItemRepositoryImpl(); this._cartItemRepo = _unitOfWorks.CartItemRepository(); this._bookRepo = _unitOfWorks.BookRepository(); this._emailService = emailService; this._userService = userService; }