Exemplo n.º 1
0
        public List <Customer> GetListCustomer(string id, string name)
        {
            List <Customer> listCustomer = new List <Customer>();

            using (LogisticsEntities de = new LogisticsEntities())
            {
                listCustomer = de.Customers.Where(w => w.CustomerID == id && w.CustomerName.Contains(name)).ToList();
            }
            return(listCustomer);
        }