예제 #1
0
        private static void RemovePlant(GardenServiceClient serviceClient, List <Plant> plants, string v)
        {
            v = v.Replace("--", "");

            Guid plantID = plants.Find(x => x.Name == v).ID;

            serviceClient.RemovePlant(plantID);

            Console.WriteLine("Plant is removed!");
        }