예제 #1
0
 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();
     }
 }
예제 #2
0
 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();
     }
 }