ASP.NET Core: Using view injection