예제 #1
0
        public string SearchOrder(string orderNumber)
        {
            if (orderNumber == null || orderNumber.Length != 8)
            {
                return("Type an order number above...");
            }

            OrderDB db    = new OrderDB();
            Order2  order = db.GetOrder(orderNumber);

            if (order == null)
            {
                return("Type an order number above...");
            }

            db.CleanRedeemedPasswords();

            return("Addr: " + order.Address + "\n" +
                   "Mail: " + order.EMail + "\n" +
                   "Name: " + order.Name + "\n" +
                   "Password: "******"\n" +
                   (order.PasswordClaimed != null ? "REDEEMED" : ""));
        }