// GET: Comments/Create public IActionResult Create() { User user = _context.Users.Find(User.FindFirst(ClaimTypes.NameIdentifier).Value); ViewBag.Mangas = MangaService.findAllMangaInOrderWithUser(user); return(View()); }
public MangasController(MangaService mangaService, CommentService commentService, RatingService ratingService, UserService userService) { this._mangaService = mangaService; this._commentService = commentService; this._ratingService = ratingService; this._userService = userService; }
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)); }
public MangaCategoryListVM GetMangaCategoryList(MangaCategorySourceType sourceType, string category, int page) { if (string.IsNullOrEmpty(category)) { category = ""; } var model = MangaService.GetMangaCategoryList(sourceType, category, page); return(model); }
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; }
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; }
// 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)); }
public HomeController(MangaService service) { this._mangaService = service; }
public MangaPicturesVM GetMangaPic(MangaCategorySourceType sourceType, string path) { var model = MangaService.GetMangaPic(sourceType, path); return(model); }
public MangaDetailVM GetMangaDetail(MangaCategorySourceType sourceType, string path) { var model = MangaService.GetMangaDetail(sourceType, path); return(model); }
public MangaCategoryVM GetManagaCategory(MangaCategorySourceType sourceType) { var ret = MangaService.GetMangaCategory(sourceType); return(ret); }
public MangaController(MangaService animeService) { this.animeService = animeService; }
public SearchModel(MangaService mangaService) { this.mangaService = mangaService; }