private static void HandleDeleteOperation() { Console.Write("Enter the JobId to Delete : "); if (int.TryParse(Console.ReadLine(), out var temp)) { JobModel.JobId = temp; } else { JobModel.JobId = 0; Console.WriteLine("Input is not in numbers..INVALID"); } if (Oracle.CheckJobExists()) { Oracle.DeleteJob(); } }
static void HandleUpdateOperation() { Console.Write("Enter Job Id to Update: "); if (int.TryParse(Console.ReadLine(), out var temp)) { JobModel.JobId = temp; } else { JobModel.JobId = 0; Console.WriteLine("Input is not in numbers..INVALID"); } if (Oracle.CheckJobExists()) { UserInteraction.GetJobDetails(); Oracle.UpdateJob(); } }