public void ViewDetailsExecute(Car car) { var selectedCar = car; //if (SelectedCar == null) //{ // return; //} int carId = selectedCar.CarId; NavigateToCarDetails(carId); }
/// <summary> /// Navigates to Edit view /// </summary> /// <param name="car"></param> public void EditCarExecute(Car car) { if (car == null) { return; } int carId = car.CarId; NavigateToCarEdit(carId); }