public ActionResult Activity() { var mgr = new AdminMembersRepository(); var manager = new UserPortalRepository(); IEnumerable <UserOrganization> list = manager.GetRelationships(int.Parse(User.Identity.Name)); int orgid = list.FirstOrDefault().OrgId; //Just put in company Id var lists = mgr.GetOrgActivity(orgid); return(View(lists)); }