예제 #1
0
        public List <Customer> GetCustomers()
        {
            CustomerBO customerBO = new CustomerBO();

            List <Customer> customers = customerBO.GetCustomers();

            return(customers);
        }
예제 #2
0
        public void GetCustomers()
        {
            CustomerBO customerBO = new CustomerBO();

            List <Customer> customers = customerBO.GetCustomers();

            Assert.AreEqual(customers.Count, 3);
        }
        // GET: Customer
        public ActionResult Customers()
        {
            CustomerBO      customerBO = new CustomerBO();
            List <Customer> customers  = customerBO.GetCustomers();

            //ViewBag.Functions = customerBO;
            return(View(customers));
        }
예제 #4
0
        public void GetCustomersSQL(object sender, System.EventArgs e)
        {
            CustomerBO customerBO = new CustomerBO();

            List <Customer> customers = customerBO.GetCustomers();

            foreach (Customer customer in customers)
            {
                bindingSource1.Add(new CustomerRow(customer));
            }

            //	BuildCustomerGrid();
        }