Data Persistence (CRUD)
Dependency injection
Constructors in classes
public class MyClass
{
private readonly IContentService _contentService;
public MyClass(IContentService contentService)
{
_contentService = contentService;
}
}Constructors in views
@inject IContentService ContentServiceServices
Last updated
Was this helpful?