Method | Description | |
---|---|---|
AddBlog ( Blog blog ) : Blog |
创建角色
|
|
AddOrUpdateBlog ( Blog blog ) : Blog |
添加或更新日志:不存在则添加,存在则更新
|
|
BlogService ( long>.IRepository |
||
GetBlog ( long id ) : Blog |
根据主键获取实体
|
|
GetBlogs ( |
获取所有用户分页列表
|
|
GetBlogsList ( int topNum ) : IEnumerable |
根据评论数和浏览数获取前topNum条数据
|
|
UpdateBlog ( Blog blog ) : Blog |
更新用户
|
public AddOrUpdateBlog ( Blog blog ) : Blog | ||
blog | Blog | 日志实体 |
return | Blog |
public BlogService ( long>.IRepository |
||
blogRepository | long>.IRepository | |
return | System.Collections.Generic |
public GetBlogs ( |
||
input | ||
return | PagingList |
public GetBlogsList ( int topNum ) : IEnumerable |
||
topNum | int | 多少条 |
return | IEnumerable |