示例#1
0
 //GET /api/customers
 public IEnumerable <Customer> GetCustomers()
 {
     return(_repo.GetCustomers().ToList());
 }
示例#2
0
        // GET: Customer
        public ActionResult Index()
        {
            List <Customer> customers = _repo.GetCustomers().ToList();;

            return(View(customers));
        }