// GET: Lookup
        public async Task <ActionResult> Index()
        {
            CustomerActions action    = new CustomerActions();
            List <Customer> customers = await action.GetAll();

            return(Json(new { draw = 1, recordsFiltered = customers, recordsTotal = customers.Count, data = customers }));
        }
Esempio n. 2
0
        // GET: Customer
        public async Task <ActionResult> Index()
        {
            List <Customer> customers = await action.GetAll();

            return(View(customers));
        }