ASP.NET Forums/General ASP.NET/ASP.NET Core/Make this code generic/Make this code generic