Class IndexModel
Inherited Members
Namespace: VoloDocs.Web.Pages
Assembly: VoloDocs.Web.dll
Syntax
public class IndexModel : PageModel, IAsyncPageFilter, IPageFilter, IFilterMetadata
Constructors
IndexModel(IOptions<DocsUiOptions>, IProjectAppService)
Declaration
public IndexModel(IOptions<DocsUiOptions> urlOptions, IProjectAppService projectAppService)
Parameters
Type | Name | Description |
---|---|---|
IOptions<DocsUiOptions> | urlOptions | |
IProjectAppService | projectAppService |
Properties
Projects
Declaration
public IReadOnlyList<ProjectDto> Projects { get; set; }
Property Value
Type | Description |
---|---|
IReadOnlyList<ProjectDto> |
Methods
GetUrlForProject(ProjectDto, string, string)
Declaration
public string GetUrlForProject(ProjectDto project = null, string language = "en", string version = null)
Parameters
Type | Name | Description |
---|---|---|
ProjectDto | project | |
string | language | |
string | version |
Returns
Type | Description |
---|---|
string |
OnGetAsync()
Declaration
public virtual Task<IActionResult> OnGetAsync()
Returns
Type | Description |
---|---|
Task<IActionResult> |