public async Task <IActionResult> DeleteAccount(string id) { string ids = userId; TempData["Id"] = ids; Account account = await accountHelper.GetById(accountId); ViewBag.accountType = account.AccountType.ToString(); var edit = await accountHelper.DeleteAsync(id); return(RedirectToAction("ListAccounts")); }