public List <Customer> GetCustomers() { CustomerBO customerBO = new CustomerBO(); List <Customer> customers = customerBO.GetCustomers(); return(customers); }
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)); }
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(); }