private static void UpdatePlant(GardenServiceClient serviceClient, List <Plant> plants, string v, string v2) { v = v.Replace("--", ""); v2 = v2.Replace("--", ""); Guid plantID = plants.Find(x => x.Name == v).ID; serviceClient.WaterPlant(plantID, int.Parse(v2)); Console.WriteLine("Plant has now water of {0}", v2); }