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