private void DisplayAllTeams() { Console.Clear(); List <DevTeam> listOfDevTeams = _teamRepo.GetDevTeams(); foreach (DevTeam devTeam in listOfDevTeams) { Console.WriteLine($"Team Name: {devTeam.DevTeamName}\n" + $"ID: {devTeam.DevTeamId}"); } }
//5. Add a team private void CreateNewTeam() { DevTeam newTeam = new DevTeam(); //team name, team ID Console.WriteLine("Enter a team name:"); newTeam.TeamName = Console.ReadLine(); Console.WriteLine("Enter a team ID:"); newTeam.TeamID = Console.ReadLine(); List <DevTeam> teams = _devTeamRepo.GetDevTeams(); teams.Add(newTeam); }
// View Dev Teams private void DisplayDevTeams() { Console.Clear(); List <DevTeam> devTeams = _teamsRepo.GetDevTeams(); foreach (DevTeam i in devTeams) { Console.WriteLine($"Team Name: {i.Name}"); } }
private void DisplayAllTeams() { Console.Clear(); List <DevTeamPOCO> listOfTeams = _devTeamRepo.GetDevTeams(); foreach (DevTeamPOCO devTeam in listOfTeams) { Console.WriteLine($"Team Name: {devTeam.TeamName}\n" + $"Team ID: {devTeam.TeamID}"); } }
private void SeeTeamsList() { Console.Clear(); List <DevTeam> listOfDevTeams = _devTeamRepo.GetDevTeams(); foreach (DevTeam team in listOfDevTeams) { Console.WriteLine($"\n {team.DevTeamName}: "); foreach (var dev in team.ListOfDevs) { Console.WriteLine($" {dev.DevID}"); } } }
private void ViewAllDevTeams() { Console.Clear(); foreach (var team in _devTeamRepo.GetDevTeams()) { Console.WriteLine($"TeamId: {team.ID}\n" + $"TeamName: {team.TeamName}" + $"TeamDepartment: {team.TeamDepartment}\n"); foreach (var dev in team.Developers) { ShowDevDetails(dev); } } Console.ReadKey(); }
private void ViewAllDeveloperTeams() { Console.Clear(); //I'm grabbing all of the Development Teams from the Development Team Repo List <DevTeam> devTeams = _devTeamRepository.GetDevTeams(); foreach (DevTeam team in devTeams) { foreach (Developer developer in team.Developers) { Console.WriteLine($"Name{developer.Name}\n" + $"Team ID{team.TeamId}\n" + $"Id Number{developer.IdNumber}\n" + $"Pluralsight{developer.HasPluralsight}"); } } }