コード例 #1
0
 public ActionResult MyMemberGroups()
 {
     try
     {
         var      id     = User.Identity.GetUserId();
         ObjectId oId    = new ObjectId(id);
         var      groups = _groupManager.GetAllMemberGroupsOfUser(oId);
         return(PartialView("_MyGroupsView", groups));
     }
     catch (Exception)
     {
         return(RedirectToAction("Index", "Home"));
     }
 }