private static void UpdateCarPetName(InventoryDAL dal) { int carId; string newCarPetName; Console.WriteLine("Enter car id:"); carId = int.Parse(Console.ReadLine()); Console.WriteLine("Enter new PetName:"); newCarPetName = Console.ReadLine(); dal.UpdateCarPetName(carId, newCarPetName); }
private static void UpdateCarPetName(InventoryDAL invDAL) { int carID; string newCarPetName; Console.Write("Enter Car ID: "); carID = int.Parse(Console.ReadLine()); Console.Write("Enter New Pet Name: "); newCarPetName = Console.ReadLine(); invDAL.UpdateCarPetName(carID, newCarPetName); }
static void UpdateCarPetName(InventoryDAL invDal, int carID, string newCarName) { invDal.UpdateCarPetName(carID, newCarName); }
private void UpdateCarPetName(InventoryDAL inventory) { Console.WriteLine("Enter Car ID:"); int id = int.Parse( Console.ReadLine() ); Console.WriteLine( "Enter A New Pet Name:" ); string petName = Console.ReadLine(); inventory.UpdateCarPetName(id, petName); }
private static void UpdateCarPetName(InventoryDAL invDAL) { // First get the user data. int carID; string newCarPetName; Console.Write("Enter Car ID: "); carID = int.Parse(Console.ReadLine()); Console.Write("Enter New Pet Name: "); newCarPetName = Console.ReadLine(); // Now pass to data access library. invDAL.UpdateCarPetName(carID, newCarPetName); }