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;
 }
예제 #2
0
 public AuthorServiceImpl(IUnitOfWorks unitOfWorks)
 {
     this._unitOfWorks      = unitOfWorks;
     this._authorRepository = this._unitOfWorks.AuthorRepository();
 }