Still i have a question, what difficulties you are facing while implementing the code in Blazor?
Because this code is applicable to ASP.Net, MVC, Core, Windows Application, Blazor.
So please elaborate your query and if any issue please share your code.