Hey I need help,
I have controller content Index api and reactivate api in the Index view there list of account with reactivate button when click it call reactivate api, But when finish reactivate i want to back to index view.
public IActionResult Index(string searchText = "")
{
var _accounts = GetAccounts();
return View("Index", _accounts);
}
[HttpGet]
public IActionResult Reactivate(string accountNumber)
{
var _response = reactivate(accountNumber);
var _accounts = GetAccounts();
return View("Index", _accounts);
}