Пример #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));
        }