Beispiel #1
0
        public void ChangegInform(Account account)
        {
            while (true)
            {
                Account accountNew = new Account();
                Console.WriteLine("Nhập vào mã tài khoản user bạn muốn thay đổi :");
                accountNew.AccountNumber = Console.ReadLine();
                Console.WriteLine("Nhập vào email của bạn :");
                accountNew.Email = Console.ReadLine();
                Console.WriteLine("Nhập vào đầy đủ họ và tên :");
                accountNew.Fullname = Console.ReadLine();
                Console.WriteLine("Nhập vào số điện thoại :");
                accountNew.PhoneNumber = Console.ReadLine();

                bool status = _adminModel.ChangePersonalInfo(accountNew);
                if (status)
                {
                    Console.WriteLine("Thay đổi thông tin cá nhân thành công");
                    Console.WriteLine("Nhấn phím bất kỳ để xác nhận");
                    Console.ReadKey();
                }
                else
                {
                    Console.WriteLine("Một số lỗi đã xảy ra, vui lòng thử lại sau !");
                    Console.WriteLine("Nhấn phím bất kỳ để xác nhận");
                    Console.ReadKey();
                }
            }
        }