Exemplo n.º 1
0
 /// <summary>
 /// 获取分页消息
 /// </summary>
 /// <param name="uid">用户ID</param>
 /// <param name="type">消息类型</param>
 /// <param name="pageSize"></param>
 /// <param name="currentPageIndex"></param>
 /// <param name="recordCount"></param>
 /// <param name="pageCount"></param>
 /// <returns></returns>
 public IEnumerable <Message> GetPagedMessage(
     int uid, MessageType type,
     int pageSize, ref int currentPageIndex,
     out int recordCount, out int pageCount)
 {
     return(dal.GetPagedMessage(uid, (int)type, pageSize,
                                ref currentPageIndex, out recordCount, out pageCount)
            .ToEntityList <Message>());
 }