コード例 #1
0
 public ActionResult AddGroup(Group group)
 {
     if (User.Identity.IsAuthenticated && User.IsInRole("Admin"))
     {
         StatementManager.AddGroup(group);
         return(RedirectToAction("Groups", "Admin"));
     }
     return(RedirectToAction("Index", "Home"));
 }