C# Class Naif.Blog.Controllers.BlogController

Inheritance: BaseController
显示文件 Open project: cnurse/Naif.Blog

Public Methods

Method Description
BlogController ( IBlogRepository blogRepository, IApplicationContext appContext ) : Microsoft.AspNetCore.Mvc
Index ( ) : IActionResult
ViewCategory ( string category ) : IActionResult
ViewPost ( string slug ) : IActionResult
ViewTag ( string tag ) : IActionResult

Method Details

BlogController() public method

public BlogController ( IBlogRepository blogRepository, IApplicationContext appContext ) : Microsoft.AspNetCore.Mvc
blogRepository IBlogRepository
appContext IApplicationContext
return Microsoft.AspNetCore.Mvc

Index() public method

public Index ( ) : IActionResult
return IActionResult

ViewCategory() public method

public ViewCategory ( string category ) : IActionResult
category string
return IActionResult

ViewPost() public method

public ViewPost ( string slug ) : IActionResult
slug string
return IActionResult

ViewTag() public method

public ViewTag ( string tag ) : IActionResult
tag string
return IActionResult