Пример #1
0
        /// <summary>
        /// 根据Id加载审计实体数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        public async Task <OperationResponse <AuditEntryOutputPageDto> > LoadAuditEntryByIdAsync(string id)
        {
            var newId      = id.AsTo <ObjectId>();
            var auditEntry = await _auditEntryRepository.FindByIdAsync(newId);

            return(OperationResponse <AuditEntryOutputPageDto> .Ok("加载成功", auditEntry.MapTo <AuditEntryOutputPageDto>()));
        }
Пример #2
0
        /// <summary>
        /// 根据Id加载审计日志数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>

        public async Task <OperationResponse <AuditLogOutputPageDto> > LoadAuditLogByIdAsync(ObjectId id)
        {
            var auditLog = await _auditLogRepository.FindByIdAsync(id);

            return(OperationResponse <AuditLogOutputPageDto> .Ok("操作成功", auditLog.MapTo <AuditLogOutputPageDto>()));
        }