public static List <Customer> Getcustomer() { NorthwindDbConext db = new NorthwindDbConext(); return(db.Customers.ToList()); }
public static List <Order> OrderListele(string CustomerID) { NorthwindDbConext order = new NorthwindDbConext(); return(order.Orders.Where(x => x.CustomerID == CustomerID).ToList()); }