C# Class BlogSharp.Core.Impl.Services.Post.PostService

Inheritance: IPostService
Show file Open project: BlogSharp/Blogsharp

Public Methods

Method Description
AddComment ( Feedback comment ) : void
AddPost ( Model post ) : void
GetPostByFriendlyTitle ( Blog blog, string friendlyTitle ) : Post
GetPostById ( Blog blog, int id ) : Post
GetPostsByBlog ( Blog blog ) : IList
GetPostsByBlogPaged ( Blog blog, int skip, int take ) : IList
GetPostsByTagPaged ( Blog blog, string friendlyTagName, int skip, int take ) : IList
PostService ( IPostRepository postRepository ) : System.Collections.Generic
RemoveComment ( Feedback comment ) : void
RemovePost ( Model post ) : void

Method Details

AddComment() public method

public AddComment ( Feedback comment ) : void
comment Feedback
return void

AddPost() public method

public AddPost ( Model post ) : void
post Model
return void

GetPostByFriendlyTitle() public method

public GetPostByFriendlyTitle ( Blog blog, string friendlyTitle ) : Post
blog Model.Blog
friendlyTitle string
return Model.Post

GetPostById() public method

public GetPostById ( Blog blog, int id ) : Post
blog Model.Blog
id int
return Model.Post

GetPostsByBlog() public method

public GetPostsByBlog ( Blog blog ) : IList
blog Model.Blog
return IList

GetPostsByBlogPaged() public method

public GetPostsByBlogPaged ( Blog blog, int skip, int take ) : IList
blog Model.Blog
skip int
take int
return IList

GetPostsByTagPaged() public method

public GetPostsByTagPaged ( Blog blog, string friendlyTagName, int skip, int take ) : IList
blog Model.Blog
friendlyTagName string
skip int
take int
return IList

PostService() public method

public PostService ( IPostRepository postRepository ) : System.Collections.Generic
postRepository IPostRepository
return System.Collections.Generic

RemoveComment() public method

public RemoveComment ( Feedback comment ) : void
comment Feedback
return void

RemovePost() public method

public RemovePost ( Model post ) : void
post Model
return void