C# Class Articles.Web.Controllers.ArticlesController

Inheritance: ApiController
显示文件 Open project: nzhul/TelerikAcademy

Public Methods

Method Description
ArticlesController ( ) : Articles.Data
ArticlesController ( IArticlesData data ) : Articles.Data

Private Methods

Method Description
Create ( ArticleModel model ) : IHttpActionResult
Get ( ) : IHttpActionResult
Get ( int page ) : IHttpActionResult
Get ( string category ) : IHttpActionResult
Get ( string category, int page ) : IHttpActionResult
GetAllSortedByDate ( ) : IEnumerable
GetById ( int id ) : IHttpActionResult
GetCategory ( string modelCategory ) : Category
GetTags ( ArticleModel model ) : ICollection

Method Details

ArticlesController() public method

public ArticlesController ( ) : Articles.Data
return Articles.Data

ArticlesController() public method

public ArticlesController ( IArticlesData data ) : Articles.Data
data IArticlesData
return Articles.Data