// 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 })); }
// GET: Customer public async Task <ActionResult> Index() { List <Customer> customers = await action.GetAll(); return(View(customers)); }