public async Task <JsonResult> GetAll() { CustomerProvider customerProvider = new CustomerProvider(); return(Json(await customerProvider.GetAllAsync(), JsonRequestBehavior.AllowGet)); }
public async Task <ActionResult> Index() { CustomerProvider customerProvider = new CustomerProvider(); return(View(await customerProvider.GetAllAsync())); }