Beispiel #1
0
        public static string GetValidEmployeeName()
        {
            string UserName = Console.ReadLine();

            if (string.IsNullOrEmpty(UserName))
            {
                Console.WriteLine(Constant.Invalid);
                UserName = GetValidEmployeeName();
            }
            else if (!MasterBankService.EmployeeUserNameVerification(UserName))
            {
                Console.WriteLine(Constant.UserNameNotAvailable);
                UserName = GetValidEmployeeName();
            }

            return(UserName);
        }