public ViewResult Index() { var activities = activityRepository.GetAllActivities(); if (authentication.Identity.IsAuthenticated) { activities = from a in activities where a.Who.Name == OnlyUserName() select a; } return View("Index",activities); }