public ActionResult EditQuestion(Question question) { if (User.Identity.IsAuthenticated && User.IsInRole("Admin")) { RatingManager.EditQuestion(question); return(RedirectToAction("Questions", "Admin")); } return(RedirectToAction("Index", "Home")); }