C# Class ChiakiYu.Service.Blogs.BlogService

Inheritance: IBlogService
Show file Open project: andyshao/ChiakiYu

Public Methods

Method Description
AddBlog ( Blog blog ) : Blog

创建角色

AddOrUpdateBlog ( Blog blog ) : Blog

添加或更新日志:不存在则添加,存在则更新

BlogService ( long>.IRepository blogRepository ) : System.Collections.Generic
GetBlog ( long id ) : Blog

根据主键获取实体

GetBlogs ( GetBlogsInput input ) : PagingList

获取所有用户分页列表

GetBlogsList ( int topNum ) : IEnumerable

根据评论数和浏览数获取前topNum条数据

UpdateBlog ( Blog blog ) : Blog

更新用户

Method Details

AddBlog() public method

创建角色
public AddBlog ( Blog blog ) : Blog
blog Blog
return Blog

AddOrUpdateBlog() public method

添加或更新日志:不存在则添加,存在则更新
public AddOrUpdateBlog ( Blog blog ) : Blog
blog Blog 日志实体
return Blog

BlogService() public method

public BlogService ( long>.IRepository blogRepository ) : System.Collections.Generic
blogRepository long>.IRepository
return System.Collections.Generic

GetBlog() public method

根据主键获取实体
public GetBlog ( long id ) : Blog
id long 日志id
return Blog

GetBlogs() public method

获取所有用户分页列表
public GetBlogs ( GetBlogsInput input ) : PagingList
input ChiakiYu.Service.Blogs.Dto.GetBlogsInput
return PagingList

GetBlogsList() public method

根据评论数和浏览数获取前topNum条数据
public GetBlogsList ( int topNum ) : IEnumerable
topNum int 多少条
return IEnumerable

UpdateBlog() public method

更新用户
public UpdateBlog ( Blog blog ) : Blog
blog Blog
return Blog