public async Task <IActionResult> OnDeleteTransaction(int transactionID) { if (transactionID > 0) { List <Transaction> transactions = await TransactionDB.GetAsync(transactionID); TransactionDB.Delete(transactions[0]); } return(RedirectToAction("Blacklist")); }