public ActionResult MySharedMaps() { try { var id = User.Identity.GetUserId(); ObjectId oId = new ObjectId(id); var mapsByUser = _mapManager.GetSharedMapsById(oId); GroupController gc = new GroupController(); var groups = gc.GetGroupsByUserId(id); var mapsByGroups = _mapManager.GetAllMapContainsGroupsNotOwned(id, groups); var maps = mapsByUser.Union(mapsByGroups, new MapComparer()); return(PartialView("_MyMapsView", maps)); } catch (Exception) { return(RedirectToAction("Index", "Home")); } }