Method | Description | |
---|---|---|
AddCategory ( JustBlog.Core.Objects.Category category ) : int |
Adds a new category.
|
|
AddPost ( JustBlog.Core.Objects.Post post ) : int |
Adds a new post and returns the id.
|
|
AddTag ( JustBlog.Core.Objects.Tag tag ) : int |
Add a new tag.
|
|
BlogRepository ( ISession session ) : System | ||
Categories ( ) : IList |
Return all the categories.
|
|
Category ( int id ) : JustBlog.Core.Objects.Category |
Return category based on id.
|
|
Category ( string categorySlug ) : JustBlog.Core.Objects.Category |
Return category based on url slug.
|
|
DeleteCategory ( int id ) : void |
Delete a category permanently.
|
|
DeletePost ( int id ) : void |
Delete the post permanently from database.
|
|
DeleteTag ( int id ) : void |
Delete an existing tag permanently.
|
|
EditCategory ( JustBlog.Core.Objects.Category category ) : void |
Update an existing category.
|
|
EditPost ( JustBlog.Core.Objects.Post post ) : void |
Update an existing post.
|
|
EditTag ( JustBlog.Core.Objects.Tag tag ) : void |
Edit an existing tag.
|
|
Post ( int id ) : JustBlog.Core.Objects.Post |
Return post based on unique id.
|
|
Post ( int year, int month, string titleSlug ) : JustBlog.Core.Objects.Post |
Return post based on the published year, month and title slug.
|
|
Posts ( int pageNo, int pageSize ) : IList |
Return collection of posts based on pagination parameters.
|
|
Posts ( int pageNo, int pageSize, string sortColumn, bool sortByAscending ) : IList |
Return posts based on pagination and sorting parameters.
|
|
PostsForCategory ( string categorySlug, int pageNo, int pageSize ) : IList |
Return collection of posts belongs to a particular category.
|
|
PostsForSearch ( string search, int pageNo, int pageSize ) : IList |
Return collection of posts that matches the search text.
|
|
PostsForTag ( string tagSlug, int pageNo, int pageSize ) : IList |
Return collection of posts belongs to a particular tag.
|
|
Tag ( int id ) : JustBlog.Core.Objects.Tag |
Return tag based on unique id.
|
|
Tag ( string tagSlug ) : JustBlog.Core.Objects.Tag |
Return tag based on url slug.
|
|
Tags ( ) : IList |
Return all the tags.
|
|
TotalCategories ( ) : int |
Return total no. of categories.
|
|
TotalPosts ( bool checkIsPublished = true ) : int |
Return total no. of all or published posts.
|
|
TotalPostsForCategory ( string categorySlug ) : int |
Return total no. of posts belongs to a particular category.
|
|
TotalPostsForSearch ( string search ) : int |
Return total no. of posts that matches the search text.
|
|
TotalPostsForTag ( string tagSlug ) : int |
Return total no. of posts belongs to a particular tag.
|
|
TotalTags ( ) : int |
Return total no. of tags.
|
public AddCategory ( JustBlog.Core.Objects.Category category ) : int | ||
category | JustBlog.Core.Objects.Category | |
return | int |
public AddPost ( JustBlog.Core.Objects.Post post ) : int | ||
post | JustBlog.Core.Objects.Post | |
return | int |
public AddTag ( JustBlog.Core.Objects.Tag tag ) : int | ||
tag | JustBlog.Core.Objects.Tag | |
return | int |
public BlogRepository ( ISession session ) : System | ||
session | ISession | |
return | System |
public Category ( int id ) : JustBlog.Core.Objects.Category | ||
id | int | Category id |
return | JustBlog.Core.Objects.Category |
public Category ( string categorySlug ) : JustBlog.Core.Objects.Category | ||
categorySlug | string | Category's url slug |
return | JustBlog.Core.Objects.Category |
public EditCategory ( JustBlog.Core.Objects.Category category ) : void | ||
category | JustBlog.Core.Objects.Category | |
return | void |
public EditPost ( JustBlog.Core.Objects.Post post ) : void | ||
post | JustBlog.Core.Objects.Post | |
return | void |
public EditTag ( JustBlog.Core.Objects.Tag tag ) : void | ||
tag | JustBlog.Core.Objects.Tag | |
return | void |
public Post ( int id ) : JustBlog.Core.Objects.Post | ||
id | int | Post unique id |
return | JustBlog.Core.Objects.Post |
public Post ( int year, int month, string titleSlug ) : JustBlog.Core.Objects.Post | ||
year | int | Published year |
month | int | Published month |
titleSlug | string | Post's url slug |
return | JustBlog.Core.Objects.Post |
public Posts ( int pageNo, int pageSize ) : IList |
||
pageNo | int | Page index |
pageSize | int | Page size |
return | IList |
public Posts ( int pageNo, int pageSize, string sortColumn, bool sortByAscending ) : IList |
||
pageNo | int | Page index |
pageSize | int | Page size |
sortColumn | string | Sort column name |
sortByAscending | bool | True to sort by ascending |
return | IList |
public PostsForCategory ( string categorySlug, int pageNo, int pageSize ) : IList |
||
categorySlug | string | Category's url slug |
pageNo | int | Page index |
pageSize | int | Page size |
return | IList |
public PostsForSearch ( string search, int pageNo, int pageSize ) : IList |
||
search | string | search text |
pageNo | int | Page index |
pageSize | int | Page size |
return | IList |
public PostsForTag ( string tagSlug, int pageNo, int pageSize ) : IList |
||
tagSlug | string | Tag's url slug |
pageNo | int | Page index |
pageSize | int | Page size |
return | IList |
public Tag ( int id ) : JustBlog.Core.Objects.Tag | ||
id | int | |
return | JustBlog.Core.Objects.Tag |
public Tag ( string tagSlug ) : JustBlog.Core.Objects.Tag | ||
tagSlug | string | |
return | JustBlog.Core.Objects.Tag |
public TotalPosts ( bool checkIsPublished = true ) : int | ||
checkIsPublished | bool | True to count only published posts |
return | int |
public TotalPostsForCategory ( string categorySlug ) : int | ||
categorySlug | string | Category's url slug |
return | int |
public TotalPostsForSearch ( string search ) : int | ||
search | string | search text |
return | int |
public TotalPostsForTag ( string tagSlug ) : int | ||
tagSlug | string | Tag's url slug |
return | int |