private static void DeleteCar(int index) { Console.WriteLine("---------------"); Console.Write("Are you sure you want to delete this car? (Y/N) "); var input = Console.ReadLine().ToUpper(); if (input == "Y") { _service.DeleteCar(index); } }
private void DeleteCar(object obj) { carDataService.DeleteCar(SelectedCar); Messenger.Default.Send <UpdateListMessage>(new UpdateListMessage()); }