Exemple #1
0
 public IList <Customer> Get()
 {
     using (var service = new ServiceModeloNegocio.ServiceClient())
     {
         var customers = service.GetAllCustomers();
         return(customers);
     }
 }
Exemple #2
0
        // GET: Customer
        public ActionResult Index()
        {
            using (var service = new ServiceModeloNegocio.ServiceClient())
            {
                var Customers = service.GetAllCustomers();


                return(View(Customers));
            }
        }