Exemplo n.º 1
0
        /// <summary>
        /// 查询列表(分页)
        /// </summary>
        public IEnumerable <AuditLog> GetAuditLogPageList(AuditLogRequest request = null)
        {
            request = request ?? new AuditLogRequest();
            using (var dbContext = new LogDbContext())
            {
                IQueryable <AuditLog> queryList = dbContext.AuditLogs;

                return(queryList.OrderByDescending(u => u.CreateTime).ToPagedList(request.PageIndex, request.PageSize));
            }
        }
Exemplo n.º 2
0
 /// <inheritdoc/>
 public ClientResponse <AuditLogResponse> CreateAuditLog(AuditLogRequest request)
 {
     return(client.CreateAuditLogAsync(request).GetAwaiter().GetResult());
 }