Ejemplo n.º 1
0
 public ActionResult MyGroups()
 {
     try
     {
         var      id     = User.Identity.GetUserId();
         ObjectId oId    = new ObjectId(id);
         var      groups = _groupManager.GetAllOwnedGroupsOfUser(oId);
         return(PartialView("_MyGroupsView", groups));
     }
     catch (Exception)
     {
         return(RedirectToAction("Index", "Home"));
     }
 }