C# Class BgEngine.Controllers.ApiController

Inheritance: Controller
Mostrar archivo Open project: yagopv/BgEngine

Public Methods

Method Description
ApiController ( IBlogServices blogservices, IService tagservices, IService categoryservices, IService postservices ) : System
GetCategories ( ) : JsonpResult
GetPost ( int postid ) : JsonpResult
GetPosts ( int page ) : JsonpResult
GetPostsBy ( string by, string id, int page ) : JsonpResult
GetTags ( ) : JsonpResult
GetThumbnail ( string url ) : void
SearchPosts ( string searchstring, int page ) : JsonpResult

Private Methods

Method Description
getImageUrl ( Image image ) : string

Method Details

ApiController() public method

public ApiController ( IBlogServices blogservices, IService tagservices, IService categoryservices, IService postservices ) : System
blogservices IBlogServices
tagservices IService
categoryservices IService
postservices IService
return System

GetCategories() public method

public GetCategories ( ) : JsonpResult
return JsonpResult

GetPost() public method

public GetPost ( int postid ) : JsonpResult
postid int
return JsonpResult

GetPosts() public method

public GetPosts ( int page ) : JsonpResult
page int
return JsonpResult

GetPostsBy() public method

public GetPostsBy ( string by, string id, int page ) : JsonpResult
by string
id string
page int
return JsonpResult

GetTags() public method

public GetTags ( ) : JsonpResult
return JsonpResult

GetThumbnail() public method

public GetThumbnail ( string url ) : void
url string
return void

SearchPosts() public method

public SearchPosts ( string searchstring, int page ) : JsonpResult
searchstring string
page int
return JsonpResult