public IActionResult OnPost() { if (SessionFacade.USERINFO == null) // not logged in { return(RedirectToPage("/Account/Login", new { area = "Identity" })); } else { UserInfo uinfo = SessionFacade.USERINFO; bool ret = _ibusbank.BillPayment(uinfo.CheckingAccountNumber, PayeeAccountNumber, PaymentAmount); if (ret == true) { CheckingBalance = _ibusbank.GetCheckingBalance(uinfo.CheckingAccountNumber); Message = "Transaction is in the progress...Might take up to 2 days.."; // clear history cache string key = String.Format("TRHISTORY_{0}", uinfo.CheckingAccountNumber); CacheAbstractionHelper.CABS.Remove(key); } } return(Page()); }