コード例 #1
0
 public FictionsController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IFictionRepository fictionRepository,
     IChapterRepository chapterRepository,
     ApplicationDbContext context)
 {
     _context           = context;
     _userManager       = userManager;
     _signInManager     = signInManager;
     _fictionRepository = fictionRepository;
     _chapterRepository = chapterRepository;
 }
コード例 #2
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     ILogger <AccountController> logger,
     ApplicationDbContext context,
     IFictionRepository fictionRepository)
 {
     _context           = context;
     _userManager       = userManager;
     _signInManager     = signInManager;
     _logger            = logger;
     _fictionRepository = fictionRepository;
 }
コード例 #3
0
 public ChaptersController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IFictionRepository fictionRepository,
     IChapterRepository chapterRepository,
     GoogleDriveRepository googleDriveRepository,
     ApplicationDbContext context)
 {
     _context                   = context;
     _userManager               = userManager;
     _signInManager             = signInManager;
     _fictionRepository         = fictionRepository;
     _chapterRepository         = chapterRepository;
     this.googleDriveRepository = googleDriveRepository;
     defaultImagePath           = googleDriveRepository.GetImageLink("1LkV9rOL_nxy314zW6F0V-OKYIYfUeV99");
 }
コード例 #4
0
 public HomeController(ILogger <HomeController> logger, IFictionRepository fictionRepository)
 {
     _logger            = logger;
     _fictionRepository = fictionRepository;
 }