public void CreateDeveloper() { KomodoInsuranceDeveloper newDev = new KomodoInsuranceDeveloper(); Console.WriteLine("Enter the Developer ID:"); int id = int.Parse(Console.ReadLine()); newDev.DeveloperID = id; Console.WriteLine("Enter the Developer's Last Name:"); string lastName = Console.ReadLine(); newDev.LastName = lastName; Console.WriteLine("Does the Developer have access? (y/n):"); char access = char.Parse(Console.ReadLine()); bool hasAccess; if (access == 'y') { hasAccess = true; } else { hasAccess = false; } newDev.HasAccess = hasAccess; _listOfDevs.Add(newDev); }
public bool DeleteDeveloper(KomodoInsuranceDeveloper developerToRemove) { bool deleteResult = _listOfDevs.Remove(developerToRemove); return(deleteResult); }
public void AddMember(KomodoInsuranceDeveloper devToAdd) { Developers.Add(devToAdd); }