There are times where you would like to pass a message up to the view, but you aren’t sure where the redirects will end up last. That is where MvcFlash comes in. You push messages into MvcFlash and then call Flash() when you need the messages display. A super simple implementation that just works. Download the source, or go to the GitHub project page to see all the things you can do.
Install-Package MvcFlash -Version 1.0.0
dotnet add package MvcFlash --version 1.0.0
<PackageReference Include="MvcFlash" Version="1.0.0" />
paket add MvcFlash --version 1.0.0
This package has no dependencies.