public ActionResult Index() { using (var admin = new AuthenticationServiceClient()) { var isAdmin = admin.UserInGroup(User.Identity.Name, "Administrator"); if (isAdmin) { return(View()); } } return(RedirectToAction("Catalog", "Home")); }