public ArticlesController(NewsNowContext context, IHostingEnvironment env) { _context = context; _env = env; // If working in Visual Studio, make sure the 'Copy to Output Directory' // property of the file is set to 'Copy always' _articlesTransitionDataPath = System.IO.Path.Combine(_env.WebRootPath, "ml", "articles-transition-data.txt"); }
public CommentsController(NewsNowContext context) { _context = context; }
public HomeController(NewsNowContext context) { _context = context; }
public CategoriesController(NewsNowContext context) { _context = context; }
public SearchController(NewsNowContext context) { _context = context; }
public StatisticsController(NewsNowContext context) { _context = context; }