Beispiel #1
0
        public void ChangeContact()
        {
            Console.WriteLine("Podaj numer użytkownika :");
            string stringId = Console.ReadLine();

            Console.WriteLine("Nowy numer telefonu :");
            string newPhone = Console.ReadLine();

            try
            {
                int id = Int32.Parse(stringId);
                var ownerController = new OwnerController();
                ownerController.ChangePhoneNumber(id, newPhone);
            }
            catch (FormatException e)
            {
                Console.WriteLine(e.Message);
            }
        }