/// <summary> /// Just for viewing superficial information about a team (no admin) /// </summary> public ActionResult TeamDetails(string team) { var teamMatch = _teamsRepository.GetMatchingTeamWithSlug(team); if (teamMatch != null) { var viewModel = new TeamDetailsViewModel() { Team = teamMatch, TeamMembers = new List <TeamMember>() // TODO: get all members for this team }; return(View(viewModel)); } // no matching team found :( return(View()); }