public ActionResult Index() { MemberViewModel vm = new MemberViewModel(); var mgr = new AdminMembersRepository(); vm.Organization = mgr.GetOrganizationByUser(int.Parse(User.Identity.Name)); vm.Members = mgr.GetAllMembers(vm.Organization.Id); vm.UserOrganizations = mgr.UserOrgItems(vm.Organization.Id); vm.Required = mgr.GetRequiredItems(int.Parse(User.Identity.Name)); //vm.Organization = mgr.GetOrganizationByUser(int.Parse(User.Identity.Name)); return(View(vm)); }