private static void DeleteInvoice() { objValidation = new InvoiceBLL(); try { Console.WriteLine("Enter Invoice No to be deleted:"); int empId = Int32.Parse(Console.ReadLine()); bool isDeleted = objValidation.DeleteInvoiceBLL(empId); if (isDeleted) { Console.WriteLine("Record Deleted!! "); } } catch (InvoiceException ex) { Console.WriteLine(ex.Message); } catch (Exception ex) { Console.WriteLine(ex.Message); } }