Example #1
0
        public override void Execute(FlashcardsClient client, string userName)
        {
            UiHelpingMethods.GetCards(client);
            Console.WriteLine("Enter the number of card");
            var number = int.Parse(Console.ReadLine());

            client.DeleteCard(number);
            Console.WriteLine("Card deleted!");
        }
        public override void Execute(FlashcardsClient client, string userName)
        {
            UiHelpingMethods.GetCollections(client);
            Console.WriteLine("Enter the number of collection");
            var number = int.Parse(Console.ReadLine());

            client.GetCollectionCards(number);
            UiHelpingMethods.GetCards(client);
        }
Example #3
0
 public override void Execute(FlashcardsClient client, string userName)
 {
     client.GetAllCards();
     UiHelpingMethods.GetCards(client);
 }