/*public IActionResult About() * { * ViewData["Message"] = "Your application description page."; * * return View(); * } * * public IActionResult SignUp() * { * ViewData["Message"] = "Sign Up"; * * return View(); * }*/ public ActionResult Articles(int category) { ArticleViewModel viewModel = new ArticleViewModel(); using (MySqlConnection conn = DBAccess.GetConnection()) { if (conn != null) { viewModel = ArticleViewModel.GetModel(conn); } } return(PartialView(viewModel)); }