コード例 #1
0
        public int AddCustomer()
        {
            string    names         = _verify.VerifyString("Please enter your name:");
            string    locales       = _verify.VerifyString("Please enter your location:");
            Customers Harambe       = new Customers(names, locales);
            bool      customerExist = _customerBL.GetCustomer2(Harambe);

            if (!customerExist)
            {
                Customers customerCreated = _customerBL.AddCustomer(Harambe);
                Log.Information("New customer created!");
                return(_customerBL.GetCustomer1(Harambe));
            }

            Console.WriteLine($"Welcome back {names}");

            return(_customerBL.GetCustomer1(Harambe));
        }