public async Task <IActionResult> Details()
        {
            var id   = User.FindFirstValue("Id");
            var acct = await _acctSvc.GetAccountById(id);

            if (acct == null)
            {
                return(NotFound());
            }

            return(View(new AccountDetails {
                Name = acct.Name, Email = acct.Email
            }));
        }
Exemple #2
0
        public async Task <IActionResult> Checkout()
        {
            var acct = await _acctSvc.GetAccountById(User.FindFirstValue("Id"));

            return(View(acct));
        }