Beispiel #1
0
        public async Task <JsonResult> GetAllAccount()
        {
            AccountProvider accountProvider = new AccountProvider();

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

            return(View(await provider.GetAllAsync()));
        }