I want to do RedirectToAction after the user clicks a button. Before forwarding, I store the information in a variable. In the end, after I redirected the action, I want to show useful information. I tried this:
ViewBag.message = "User with ID = " + id + " was changed status to verified.";
But the data will be discarded after the redirect. Is there any other way to achieve this?
source
share