public async Task <JsonResult> GetAllAccount() { AccountProvider accountProvider = new AccountProvider(); return(Json((await accountProvider.GetAllAsync()), JsonRequestBehavior.AllowGet)); }
// GET: admin/account public async Task <ActionResult> Index() { AccountProvider provider = new AccountProvider(); return(View(await provider.GetAllAsync())); }