public static List <MeetUp> AddNewMeetUpToList(List <MeetUp> meetUps) { var meetUp = new MeetUp(); meetUp.Id = GetNextId(meetUps); Console.Write("Book Title: "); meetUp.Title = Console.ReadLine(); Console.Write("Book Author: "); meetUp.Author = Console.ReadLine(); Console.Write("Book Genre: "); meetUp.Genre = Console.ReadLine(); Console.Write("Date of Meet Up: "); meetUp.MeetUpDate = Console.ReadLine(); Console.Write("Location of Meet Up: "); meetUp.MeetUpLocation = Console.ReadLine(); meetUps.Add(meetUp); Console.WriteLine(); Console.WriteLine("Your Meet Up has been added!"); System.Threading.Thread.Sleep(1500); JsonFileManager.SaveToFile(meetUps); return(meetUps); }
public static void EditMenu(MeetUp meetUpToEdit) { Console.Clear(); Console.WriteLine(); Console.WriteLine("Please select the field you wish to edit"); Console.WriteLine(); Console.WriteLine($"1. Title: {meetUpToEdit.Title}"); Console.WriteLine($"2. Author: {meetUpToEdit.Author} "); Console.WriteLine($"3. Genre: {meetUpToEdit.Genre}"); Console.WriteLine($"4. Date: {meetUpToEdit.MeetUpDate}"); Console.WriteLine($"5. Location: {meetUpToEdit.MeetUpLocation}"); Console.WriteLine("6. Save & Exit"); Console.WriteLine(); Console.Write("Selection: "); }