Exemplo n.º 1
0
        public static List <Customer> Getcustomer()
        {
            NorthwindDbConext db = new NorthwindDbConext();

            return(db.Customers.ToList());
        }
Exemplo n.º 2
0
        public static List <Order> OrderListele(string CustomerID)
        {
            NorthwindDbConext order = new NorthwindDbConext();

            return(order.Orders.Where(x => x.CustomerID == CustomerID).ToList());
        }