예제 #1
0
 public CategoriesController(ICategoryService categoryService, IBookCategoryService bookCategoryService,
                             IMapper mapper)
 {
     this.categoryService     = categoryService;
     this.bookCategoryService = bookCategoryService;
     this.mapper = mapper;
 }
예제 #2
0
 public BooksController(LinkGenerator linkGenerator, ILogger <BooksController> logger, IBookService bookService, IBookCategoryService bookCategoryService)
 {
     _linkGenerator       = linkGenerator;
     _logger              = logger;
     _bookService         = bookService;
     _bookCategoryService = bookCategoryService;
 }
예제 #3
0
 public HomeController(IQuotationService quotationService, IInformationService informationService, IBookCategoryService bookCategoryService, IBookService bookService)
 {
     this._quotationService    = quotationService;
     this._informationService  = informationService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
 }
예제 #4
0
 public BookManager(IMapper mapper, IBookService service, IBookCategoryService categoryService,
                    IPublishingHouseService publishingHouseService, IBookInfoService bookInfoService)
 {
     _service                = service;
     _categoryService        = categoryService;
     _publishingHouseService = publishingHouseService;
     _bookInfoService        = bookInfoService;
 }
 public BookController(
     IBookService bookService, IBookCategoryService bookCategoryService,
     IBookAuthorService bookAuhtorService, IMapper mapper)
 {
     this._mapper              = mapper;
     this._bookService         = bookService;
     this._bookCategoryService = bookCategoryService;
     this._bookAuhtorService   = bookAuhtorService;
 }
예제 #6
0
 public TypeEbookController(ITypeEbookService typeEbookService, IUserService userService, IAuthorService authorService, IBookCategoryService bookCategoryService, IBookService bookService, IEbookService ebookService)
 {
     this._authorService       = authorService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
     this._ebookService        = ebookService;
     this._userService         = userService;
     this._typeEbookService    = typeEbookService;
 }
예제 #7
0
        private readonly IBookCategoryService _bookCategoryService; // not used
        public BooksController(IBookService bookService, IBookRepository bookRepository, IBookCategoryService bookCategoryService)
        {
            _bookCategoryService = bookCategoryService;
            _bookService         = bookService;
            _bookRepository      = bookRepository;

            // IMO it's a bit of a code smell when you have a controller (or service) that is operating at multiple levels of abstraction (repos vs services)
            // This is true even if they're for different things - it's especially true when they're both for the same thing (bookRepo, bookService)
        }
예제 #8
0
 public QuotationController(IQuotationService quotationService, ITypeEbookService typeEbookService, IUserService userService, IAuthorService authorService, IBookCategoryService bookCategoryService, IBookService bookService, IEbookService ebookService)
 {
     this._authorService       = authorService;
     this._quotationService    = quotationService;
     this._bookCategoryService = bookCategoryService;
     this._bookService         = bookService;
     this._ebookService        = ebookService;
     this._userService         = userService;
     this._typeEbookService    = typeEbookService;
 }
 public BookInfoManager(IBookInfoService service, IMapper mapper,
                        IBookCategoryService categoryService,
                        IPublishingHouseService publishingHouseService
                        )
 {
     _service                = service;
     _categoryService        = categoryService;
     _publishingHouseService = publishingHouseService;
     _mapper = mapper;
 }
 public ChapterDetailController(IChapterDetailRepository chapterDetailRepository, ITypeEbookService typeEbookService, IUserService userService, IAuthorService authorService, IBookCategoryService bookCategoryService, IBookService bookService, IEbookService ebookService)
 {
     this._authorService           = authorService;
     this._chapterDetailRepository = chapterDetailRepository;
     this._bookCategoryService     = bookCategoryService;
     this._bookService             = bookService;
     this._ebookService            = ebookService;
     this._userService             = userService;
     this._typeEbookService        = typeEbookService;
 }
예제 #11
0
 public BookController(IRatingDetailService ratingDetailService, IEmailService emailService, IAuthorizationService authorizationService, IHostingEnvironment hostingEnvironment, IMerchantService merchantService, IBookCategoryService bookCategoryService, IBookService bookService, IUnitOfWork unitOfWork)
 {
     _ratingDetailService  = ratingDetailService;
     _emailService         = emailService;
     _authorizationService = authorizationService;
     _bookService          = bookService;
     _bookCategoryService  = bookCategoryService;
     _unitOfWork           = unitOfWork;
     _merchantService      = merchantService;
     _hostingEnvironment   = hostingEnvironment;
 }
예제 #12
0
 public BookController(IInformationService informationService, IChapterDetailService chapterDetailService, IAudioBookService audioBookService, ITypeEbookService typeEbookService, IUserService userService, IAuthorService authorService, IBookCategoryService bookCategoryService, IBookService bookService, IEbookService ebookService)
 {
     this._authorService        = authorService;
     this._informationService   = informationService;
     this._chapterDetailService = chapterDetailService;
     this._audioBookService     = audioBookService;
     this._bookCategoryService  = bookCategoryService;
     this._bookService          = bookService;
     this._ebookService         = ebookService;
     this._userService          = userService;
     this._typeEbookService     = typeEbookService;
 }
예제 #13
0
 public BookService(
     IBookRepository bookRepository,
     IAuthorRepository authorRepository,
     ICategoryRepository categoryRepository,
     IBookCategoryService bookCategoryService,
     IBookAuthorService bookAuthorService,
     DataContext context
     )
 {
     _authorRepository    = authorRepository;
     _categoryRepository  = categoryRepository;
     _bookCategoryService = bookCategoryService;
     _bookAuthorService   = bookAuthorService;
     _context             = context;
     _bookRepository      = bookRepository;
 }
 public BookCategoryController(IAuthorizationService authorizationService, IBookCategoryService bookCategoryService, IUnitOfWork unitOfWork)
 {
     _authorizationService = authorizationService;
     _bookCategoryService  = bookCategoryService;
     _unitOfWork           = unitOfWork;
 }
예제 #15
0
 public BookCategoryController(IBookCategoryService bookCategoryService, IMapper mapper)
     : base(mapper)
 {
     this.bookCategoryService = bookCategoryService ?? throw new ArgumentNullException(nameof(bookCategoryService));
 }
예제 #16
0
 public BookCategoryManager(IBookCategoryService service, IMapper mapper)
 {
     _service = service;
     _mapper  = mapper;
 }
예제 #17
0
 public BookService(IBookCategoryService bookCategoryService, ILikeService likeService)
 {
     _bookCategoryService = bookCategoryService;
     _likeService         = likeService;
 }
예제 #18
0
 public BookServiceController(IBookCategoryService bookCategoryService, IBookService bookService)
 {
     _bookCategoryService = bookCategoryService;
     this.bookService     = bookService;
 }
예제 #19
0
 public BookCategoryController(ILogger <BookCategoryController> logger, IBookCategoryService bookCategoryServices)
 {
     _logger = logger;
     _bookCategoryServices = bookCategoryServices;
 }
예제 #20
0
 public UI_BookCategory()
 {
     bookCategoryService = new BookCategoryService();
 }
예제 #21
0
 public BookCategoryServiceAdapter()
 {
     _service = ServiceFactory.CreateService <IBookCategoryService>();
 }
예제 #22
0
 public BooksController(IBookService bookService, IBookCategoryService bookCategoryService, IMapper mapper)
 {
     this.bookService         = bookService;
     this.bookCategoryService = bookCategoryService;
     this.mapper = mapper;
 }
 public BookCategoryController(IBookCategoryService bookCategoryService, ILogger <BookCategoryController> logger)
 {
     _bookCategoryService = bookCategoryService;
     _logger = logger;
     _logger.LogInformation($"Enter the {nameof(BookCategoryController)} controller");
 }
예제 #24
0
 public BooksCategoryManager()
 {
     _bookscategorySvc = new BooksCategoryService();
 }
 public BookCategoryController(IUserService userService, IBookCategoryService bookCategoryService, IBookService bookService)
 {
     this._bookCategoryService = bookCategoryService;
     this._userService         = userService;
 }
예제 #26
0
 public BookCategoryController(IBookCategoryService bookCategoryService)
 {
     _bookCategoryService = bookCategoryService;
 }