public void Start() { string name, address; Console.WriteLine("Enter location name: "); name = Console.ReadLine(); Console.WriteLine("Enter location address"); address = Console.ReadLine(); try { locationService.AddNewLocation(name, address); } catch (Exception ex) { Log.Warning("Attempted to add existing location."); Console.WriteLine(ex.Message); return; } locationService.SaveChanges(); Console.WriteLine("New Location added! All locations listed below:"); foreach (var location in locationService.GetAllLocations()) { Console.WriteLine($"\tlocation id: {location.LocationId} location name: {location.Name}"); } }