Ejemplo n.º 1
0
 /// <summary>
 /// 获取短评 control为1时按时间排序 否则按热度排序
 /// </summary>
 /// <param name="id"></param>
 /// <param name="control"></param>
 /// <returns></returns>
 public IEnumerable <ShortComment> GetShortComments(int id, int control)
 {
     return(control == 1?animation.GetShortCommentsByTime(id):animation.GetShortCommentsByHot(id));
 }