internal static void PrintRemoveCounselorMenu(Counselor counselorToUpdate) { Console.WriteLine($"Do you really want to remove next of kin {counselorToUpdate.FirstName} {counselorToUpdate.LastNAme} from Camp SleepOver?"); Console.WriteLine("---------------------------"); Console.WriteLine("1. Yes"); Console.WriteLine("2. No"); }
internal static CounselorHistory GetACounselorHistory(Counselor counselor) { var counselorHistory = new CounselorHistory() { FirstName = counselor.FirstName, LastName = counselor.LastNAme, PhoneNumber = counselor.PhoneNumber, SocialSecurityNumber = counselor.SocialSecurityNumber, CounselorID = counselor.CounselorID, TimeStamp = DateTime.UtcNow }; try { using (var db = new CampSleepAwayContext()) { counselorHistory.CabinID = counselor.Cabin.CabinID; } } catch { } return(counselorHistory); }
internal static void PrintSpecificCounselor(Counselor counselor) { Console.WriteLine($"***Counselor***"); Console.WriteLine($"Firstname: {counselor.FirstName}"); Console.WriteLine($"Lastname: {counselor.LastNAme}"); Console.WriteLine($"Phone number: {counselor.PhoneNumber}"); Console.WriteLine($"SSN: {counselor.SocialSecurityNumber}"); if (counselor.Cabin != null) { Console.WriteLine($"Cabin number: {counselor.Cabin.CabinNumber}"); } else { Console.WriteLine("Cabin number: Counselor is assigned to no cabin"); } }