asp.net-coreInjecting services into views


Syntax

  • @inject<NameOfService><Identifier>
  • @<Identifier>.Foo()
  • @inject <type> <name>