public ActionResult Index(bool? homepage) { if (Request.IsAuthenticated) { if (User.IsInRole("Admin") && (!(homepage ?? false))) return RedirectToAction("Index", "AdminMain"); } ViewBag.HomeStatus = "active"; ViewBag.VideoStatus = "inactive"; ViewBag.ReviewStatus = "inactive"; ViewBag.ContactStatus = "inactive"; FilmService phimService = new FilmService(); ViewBag.maxIndexPage = phimService.getMaxIndexPage(); List<PhimViewModels> result = phimService.filmMax(); return View(result[0]); }