Esempio n. 1
0
        // GET: Comments/Create
        public IActionResult Create()
        {
            User user = _context.Users.Find(User.FindFirst(ClaimTypes.NameIdentifier).Value);

            ViewBag.Mangas = MangaService.findAllMangaInOrderWithUser(user);
            return(View());
        }
Esempio n. 2
0
 public MangasController(MangaService mangaService, CommentService commentService, RatingService ratingService, UserService userService)
 {
     this._mangaService   = mangaService;
     this._commentService = commentService;
     this._ratingService  = ratingService;
     this._userService    = userService;
 }
Esempio n. 3
0
        public CommandHandlingService(
            IServiceProvider provider,
            DiscordSocketClient discord,
            CommandService commands,
            MangaService mangaService,
            UserAlertService userAlertService,
            ChannelService channelService,
            ServerAlertService serverAlertService,
            MangaUpdatesCrawlerService mangaUpdatesService,
            UnionMangasCrawlerService unionMangasService,
            //TuMangaCrawlerService tuMangaService,
            InfoAnimeCrawlerService infoAnimeCrawlerService,
            AppDbContext dbContext)
        {
            this.discord             = discord;
            this.commands            = commands;
            this.mangaService        = mangaService;
            this.userAlertService    = userAlertService;
            this.channelService      = channelService;
            this.serverAlertService  = serverAlertService;
            this.mangaUpdatesService = mangaUpdatesService;
            this.unionMangasService  = unionMangasService;
            //this.tuMangaService = tuMangaService;
            this.infoAnimeService = infoAnimeCrawlerService;
            this.provider         = provider;
            this.dbContext        = dbContext;

            this.discord.Connected += Update;
            resourceManager         = new ResourceManager(typeof(WebJobResource));
        }
Esempio n. 4
0
        public MangaCategoryListVM GetMangaCategoryList(MangaCategorySourceType sourceType, string category, int page)
        {
            if (string.IsNullOrEmpty(category))
            {
                category = "";
            }

            var model = MangaService.GetMangaCategoryList(sourceType, category, page);

            return(model);
        }
Esempio n. 5
0
 public PrivateAlertModule(
     MangaService mangaService,
     PrivateAlertService privateAlertService,
     CrawlerService crawlerService,
     AppDbContext dbContext,
     LocaledResourceManager <PrivateAlertModuleResource> resourceManager)
 {
     this.mangaService        = mangaService;
     this.privateAlertService = privateAlertService;
     this.crawlerService      = crawlerService;
     this.dbContext           = dbContext;
     this.resourceManager     = resourceManager;
 }
Esempio n. 6
0
 public UserAlertModule(
     MangaService mangaService,
     UserAlertService userAlertService,
     CrawlerService crawlerService,
     AppDbContext context,
     LocaledResourceManager <UserAlertModuleResource> resourceManager)
 {
     this.mangaService     = mangaService;
     this.userAlertService = userAlertService;
     this.crawlerService   = crawlerService;
     this.dbContext        = context;
     this.resourceManager  = resourceManager;
 }
Esempio n. 7
0
        // GET: Comments/Edit/5
        public async Task <IActionResult> Edit(int?id)
        {
            User user = _context.Users.Find(User.FindFirst(ClaimTypes.NameIdentifier).Value);

            ViewBag.Mangas = MangaService.findAllMangaInOrderWithUser(user);
            if (id == null)
            {
                return(NotFound());
            }

            var comment = await _context.Comment.FindAsync(id);

            if (comment == null)
            {
                return(NotFound());
            }
            return(View(comment));
        }
Esempio n. 8
0
 public HomeController(MangaService service)
 {
     this._mangaService = service;
 }
Esempio n. 9
0
        public MangaPicturesVM GetMangaPic(MangaCategorySourceType sourceType, string path)
        {
            var model = MangaService.GetMangaPic(sourceType, path);

            return(model);
        }
Esempio n. 10
0
        public MangaDetailVM GetMangaDetail(MangaCategorySourceType sourceType, string path)
        {
            var model = MangaService.GetMangaDetail(sourceType, path);

            return(model);
        }
Esempio n. 11
0
        public MangaCategoryVM GetManagaCategory(MangaCategorySourceType sourceType)
        {
            var ret = MangaService.GetMangaCategory(sourceType);

            return(ret);
        }
Esempio n. 12
0
 public MangaController(MangaService animeService)
 {
     this.animeService = animeService;
 }
Esempio n. 13
0
 public SearchModel(MangaService mangaService)
 {
     this.mangaService = mangaService;
 }