Ejemplo n.º 1
0
 public BooksController(IBookRepository bookRepository,
                        IHostingEnvironment hostingEnvironment,
                        UserManager <ApplicationUser> userManager,
                        IDownloadFormatRepository downloadFormat
                        )
 {
     _userManager        = userManager;
     _hostingEnvironment = hostingEnvironment;
     _bookRepository     = bookRepository;
     _downloadFormat     = downloadFormat;
 }
Ejemplo n.º 2
0
 public BooksController(IBookRepository bookRepository,
                        ICategoryRepository categoryRepository,
                        IBookTypeRepository bookTypeRepository,
                        IDownloadFormatRepository downloadFormat,
                        UserManager <ApplicationUser> userManager)
 {
     _bookRepository     = bookRepository;
     _categoryRepository = categoryRepository;
     _bookTypeRepository = bookTypeRepository;
     _downloadFormat     = downloadFormat;
     _userManager        = userManager;
 }