コード例 #1
0
        public AdminController(IRepository <ApplicationUser> userRepository,
                               IRepository <Book> bookRepository,
                               IRepository <Tag> tagRepository,
                               IRepository <Genre> genreRepository,
                               IUpdateService <Book> bookUpdateService,
                               IUpdateService <Genre> genreUpdateService,
                               IUpdateService <Tag> tagUpdateService,
                               IFactory <Book, BookResponseModel> bookFactory,
                               IFactory <Genre, GenreResponseModel> genreFactory,
                               IFactory <Tag, TagResponseModel> tagFactory,
                               IMapper objectMapper, UserManager <ApplicationUser> userManager,
                               BookDataServices bookServices,
                               IBlobStorageService blobStorageService)
        {
            this.userRepository = userRepository;
            this.bookRepository = bookRepository;

            this.bookUpdateService  = bookUpdateService;
            this.genreUpdateService = genreUpdateService;
            this.tagUpdateService   = tagUpdateService;
            this.objectMapper       = objectMapper;
            this.userManager        = userManager;
            this.bookServices       = bookServices;
            this.blobStorageService = blobStorageService;
            this.bookFactory        = bookFactory;
            this.genreFactory       = genreFactory;
            this.tagFactory         = tagFactory;
        }
コード例 #2
0
 public BookController(IRepository <ApplicationUser> applicationUserRepository,
                       IRepository <Book> bookRepository,
                       IRepository <Genre> genreRepository,
                       IRepository <Tag> tagRepository,
                       IRepository <Comment> commentRepository,
                       IRepository <BookUser> bookUserRepository,
                       IUpdateService <Book> bookUpdateService,
                       IUpdateService <Comment> commentUpdateService,
                       UserManager <ApplicationUser> userManager,
                       IFactory <Comment, CommentResponseModel> commentFactory,
                       BookDataServices dataService,
                       IMapper objectMapper,
                       ISearchFactory searchFactory)
 {
     this.applicationUserRepository = applicationUserRepository;
     this.bookRepository            = bookRepository;
     this.genreRepository           = genreRepository;
     this.tagRepository             = tagRepository;
     this.bookUserRepository        = bookUserRepository;
     this.commentRepository         = commentRepository;
     this.bookUpdateService         = bookUpdateService;
     this.commentUpdateService      = commentUpdateService;
     this._userManager   = userManager;
     this.commentFactory = commentFactory;
     this.dataService    = dataService;
     this.objectMapper   = objectMapper;
     this.searchFactory  = searchFactory;
 }