Did you mean:
@model TeamModel
instead of:
@inject TeamModel
? @inject
means you want to register a dependency with DI container and then DI container provides the dependency at run time. @model
means there's a linked class that is supplying values for your razor page to use.